* Fix typos and add todo to fix spelling of dnsutil.MaximumDefaulTTL

Signed-off-by: Zhizhen He <hezhizhen.yi@gmail.com>
This commit is contained in:
Zhizhen He
2023-08-10 23:06:48 +08:00
committed by GitHub
parent c657af467b
commit 2fe5890d8b
13 changed files with 20 additions and 19 deletions

View File

@@ -260,7 +260,7 @@ func (w *testImportOrderingWalker) walk(path string, info os.FileInfo, _ error)
}
// Ok, now that we have the type, let's see if all members adhere to it.
// After that we check if the are in the right order.
// After that we check if they are in the right order.
for i := 0; i <= bl; i++ {
for _, p := range blocks[i] {
t := importtype(p.Path.Value)

View File

@@ -40,7 +40,7 @@ func TestTsig(t *testing.T) {
}
tsig := r.IsTsig()
if tsig == nil {
t.Fatalf("Respose was not TSIG")
t.Fatalf("Response was not TSIG")
}
if tsig.Error != dns.RcodeSuccess {
t.Fatalf("TSIG Error code should be dns.RcodeSuccess")
@@ -70,7 +70,7 @@ func TestTsigBadKey(t *testing.T) {
}
tsig := r.IsTsig()
if tsig == nil {
t.Fatalf("Respose was not TSIG")
t.Fatalf("Response was not TSIG")
}
if tsig.Error != dns.RcodeBadKey {
t.Fatalf("TSIG Error code should be dns.RcodeBadKey")
@@ -109,7 +109,7 @@ func TestTsigBadSig(t *testing.T) {
}
tsig := r.IsTsig()
if tsig == nil {
t.Fatalf("Respose was not TSIG")
t.Fatalf("Response was not TSIG")
}
if tsig.Error != dns.RcodeBadSig {
t.Fatalf("TSIG Error code should be dns.RcodeBadSig")
@@ -149,7 +149,7 @@ func TestTsigBadTime(t *testing.T) {
}
tsig := r.IsTsig()
if tsig == nil {
t.Fatalf("Respose was not TSIG")
t.Fatalf("Response was not TSIG")
}
if tsig.Error != dns.RcodeBadTime {
t.Fatalf("TSIG Error code should be dns.RcodeBadTime")