aboutsummaryrefslogtreecommitdiff
path: root/test/erratic_autopath_test.go
diff options
context:
space:
mode:
authorGravatar Ambrose Chua <ambrose@chua.family> 2020-04-25 14:08:36 +0800
committerGravatar GitHub <noreply@github.com> 2020-04-25 08:08:36 +0200
commited1f42cf563e60068cadb96155423942917d0d47 (patch)
tree9e5db2f9744cc20b73ab3c0b8f370450d06f6106 /test/erratic_autopath_test.go
parent74eabe90e03b3c83edeb242ff9491b44a7e82cfc (diff)
downloadcoredns-ed1f42cf563e60068cadb96155423942917d0d47.tar.gz
coredns-ed1f42cf563e60068cadb96155423942917d0d47.tar.zst
coredns-ed1f42cf563e60068cadb96155423942917d0d47.zip
Fix mixed indentation within tests (#3855)
Signed-off-by: Ambrose Chua <ambrose@chua.family>
Diffstat (limited to 'test/erratic_autopath_test.go')
-rw-r--r--test/erratic_autopath_test.go30
1 files changed, 15 insertions, 15 deletions
diff --git a/test/erratic_autopath_test.go b/test/erratic_autopath_test.go
index d71873131..4ccd5b136 100644
--- a/test/erratic_autopath_test.go
+++ b/test/erratic_autopath_test.go
@@ -17,7 +17,7 @@ func setupProxyTargetCoreDNS(t *testing.T, fn func(string)) {
defer os.Remove(tmpdir)
content := `
-example.org. IN SOA sns.dns.icann.org. noc.dns.icann.org. 1 3600 3600 3600 3600
+example.org. IN SOA sns.dns.icann.org. noc.dns.icann.org. 1 3600 3600 3600 3600
google.com. IN SOA ns1.google.com. dns-admin.google.com. 1 3600 3600 3600 3600
google.com. IN A 172.217.25.110
@@ -30,9 +30,9 @@ google.com. IN A 172.217.25.110
defer os.Remove(path)
corefile := `.:0 {
- file ` + path + `
-}
-`
+ file ` + path + `
+ }`
+
i, udp, _, err := CoreDNSServerAndPorts(corefile)
if err != nil {
t.Fatalf("Could not get proxy target CoreDNS serving instance: %s", err)
@@ -45,12 +45,12 @@ google.com. IN A 172.217.25.110
func TestLookupAutoPathErratic(t *testing.T) {
setupProxyTargetCoreDNS(t, func(proxyPath string) {
corefile := `.:0 {
- erratic
- autopath @erratic
- forward . ` + proxyPath + `
- debug
- }
-`
+ erratic
+ autopath @erratic
+ forward . ` + proxyPath + `
+ debug
+ }`
+
i, udp, _, err := CoreDNSServerAndPorts(corefile)
if err != nil {
t.Fatalf("Could not get CoreDNS serving instance: %s", err)
@@ -91,11 +91,11 @@ func TestLookupAutoPathErratic(t *testing.T) {
func TestAutoPathErraticNotLoaded(t *testing.T) {
setupProxyTargetCoreDNS(t, func(proxyPath string) {
corefile := `.:0 {
- autopath @erratic
- forward . ` + proxyPath + `
- debug
- }
-`
+ autopath @erratic
+ forward . ` + proxyPath + `
+ debug
+ }`
+
i, err := CoreDNSServer(corefile)
if err != nil {
t.Fatalf("Could not get CoreDNS serving instance: %s", err)