aboutsummaryrefslogtreecommitdiff
path: root/plugin
diff options
context:
space:
mode:
authorGravatar Miek Gieben <miek@miek.nl> 2019-08-14 07:56:12 +0000
committerGravatar GitHub <noreply@github.com> 2019-08-14 07:56:12 +0000
commitfcbe70f4f89609d540f15f27fbf97cb3010771c5 (patch)
tree5392e8d7ae11f10132907accd4bb0d986d4e5ba3 /plugin
parent3c45e55f91d8773b76252ffdc7b7285d12d6a1e5 (diff)
downloadcoredns-fcbe70f4f89609d540f15f27fbf97cb3010771c5.tar.gz
coredns-fcbe70f4f89609d540f15f27fbf97cb3010771c5.tar.zst
coredns-fcbe70f4f89609d540f15f27fbf97cb3010771c5.zip
run gofmt -w -s **/*.go (#3126)
format and simplify; highlighted some stuff in route53_test.go that could be further simplified. Signed-off-by: Miek Gieben <miek@miek.nl>
Diffstat (limited to 'plugin')
-rw-r--r--plugin/route53/route53_test.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/plugin/route53/route53_test.go b/plugin/route53/route53_test.go
index 8db42d252..a4d71fbff 100644
--- a/plugin/route53/route53_test.go
+++ b/plugin/route53/route53_test.go
@@ -79,7 +79,7 @@ func (fakeRoute53) ListResourceRecordSetsPagesWithContext(_ aws.Context, in *rou
func TestRoute53(t *testing.T) {
ctx := context.Background()
- r, err := New(ctx, fakeRoute53{}, map[string][]string{"bad.": {"0987654321"}}, time.Duration(1)*time.Minute)
+ r, err := New(ctx, fakeRoute53{}, map[string][]string{"bad.": {"0987654321"}}, time.Minute)
if err != nil {
t.Fatalf("Failed to create Route53: %v", err)
}
@@ -87,7 +87,7 @@ func TestRoute53(t *testing.T) {
t.Fatalf("Expected errors for zone bad.")
}
- r, err = New(ctx, fakeRoute53{}, map[string][]string{"org.": {"1357986420", "1234567890"}, "gov.": {"Z098765432", "1234567890"}}, time.Duration(90)*time.Second)
+ r, err = New(ctx, fakeRoute53{}, map[string][]string{"org.": {"1357986420", "1234567890"}, "gov.": {"Z098765432", "1234567890"}}, 90*time.Second)
if err != nil {
t.Fatalf("Failed to create Route53: %v", err)
}