diff options
author | 2016-09-21 17:01:19 +0100 | |
---|---|---|
committer | 2016-09-21 17:01:19 +0100 | |
commit | 5301c5af5fde0ad5bf063e12decd4c5202047457 (patch) | |
tree | fc9957fc5382285f27c12436b9f4da9aae670548 /middleware/test/helpers.go | |
parent | 7b79458c8a659a4cc8fffb5f678321a0fdd09333 (diff) | |
download | coredns-5301c5af5fde0ad5bf063e12decd4c5202047457.tar.gz coredns-5301c5af5fde0ad5bf063e12decd4c5202047457.tar.zst coredns-5301c5af5fde0ad5bf063e12decd4c5202047457.zip |
Run golint and go vet (#276)
Cleanup the errors and removed deadcode along the way. The leaves
some error laying around, mostly about commenting exported identifier.
We should look hard if those really are needed.
Diffstat (limited to 'middleware/test/helpers.go')
-rw-r--r-- | middleware/test/helpers.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/middleware/test/helpers.go b/middleware/test/helpers.go index 8ed27261f..37d046cb3 100644 --- a/middleware/test/helpers.go +++ b/middleware/test/helpers.go @@ -149,12 +149,12 @@ func Section(t *testing.T, tc Case, sect Sect, rr []dns.RR) bool { return false } if x.SignerName != section[i].(*dns.RRSIG).SignerName { - t.Errorf("rr %d should have a SignerName of %d, but has %d", i, section[i].(*dns.RRSIG).SignerName, x.SignerName) + t.Errorf("rr %d should have a SignerName of %s, but has %s", i, section[i].(*dns.RRSIG).SignerName, x.SignerName) return false } case *dns.NSEC: if x.NextDomain != section[i].(*dns.NSEC).NextDomain { - t.Errorf("rr %d should have a NextDomain of %d, but has %d", i, section[i].(*dns.NSEC).NextDomain, x.NextDomain) + t.Errorf("rr %d should have a NextDomain of %s, but has %s", i, section[i].(*dns.NSEC).NextDomain, x.NextDomain) return false } // TypeBitMap |