Skip to content

Commit

Permalink
因耗时太久,删除TestGenKeyWithTag测试。
Browse files Browse the repository at this point in the history
  • Loading branch information
TochusC committed Dec 3, 2024
1 parent ee2dc08 commit ee012f5
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions dns/xperi/dnssec_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -19,13 +19,13 @@ func TestGenerateRandomKeyWithTag(t *testing.T) {
}
}

// TestGenKeyWithTag 测试 GenKeyWithTag 函数
func TestGenenrateDNSKEYWithTag(t *testing.T) {
key := GenerateDNSKEYWithTag(dns.DNSSECAlgorithmRSASHA256, dns.DNSKEYFlagZoneKey, 41797)
if int(CalculateKeyTag(key)) != 41797 {
t.Errorf("Key Tag not match, got: %d, expected: %d", CalculateKeyTag(key), 41797)
}
}
// // TestGenKeyWithTag 测试 GenKeyWithTag 函数
// func TestGenenrateDNSKEYWithTag(t *testing.T) {
// key := GenerateDNSKEYWithTag(dns.DNSSECAlgorithmRSASHA256, dns.DNSKEYFlagZoneKey, 41797)
// if int(CalculateKeyTag(key)) != 41797 {
// t.Errorf("Key Tag not match, got: %d, expected: %d", CalculateKeyTag(key), 41797)
// }
// }

// TestGenRandomRRSIG 测试 GenRandomRRSIG 函数
func TestGenerateRandomRRSIG(t *testing.T) {
Expand Down

0 comments on commit ee012f5

Please sign in to comment.