aboutsummaryrefslogtreecommitdiff
path: root/middleware/test/helpers.go
diff options
context:
space:
mode:
authorGravatar Miek Gieben <miek@miek.nl> 2016-09-21 17:01:19 +0100
committerGravatar GitHub <noreply@github.com> 2016-09-21 17:01:19 +0100
commit5301c5af5fde0ad5bf063e12decd4c5202047457 (patch)
treefc9957fc5382285f27c12436b9f4da9aae670548 /middleware/test/helpers.go
parent7b79458c8a659a4cc8fffb5f678321a0fdd09333 (diff)
downloadcoredns-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.go4
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