From ee012f5d676cd9095ca505c5730edb8e229260f9 Mon Sep 17 00:00:00 2001 From: TochusC <205329624@qq.com> Date: Tue, 3 Dec 2024 20:41:31 +0800 Subject: [PATCH] =?UTF-8?q?=E5=9B=A0=E8=80=97=E6=97=B6=E5=A4=AA=E4=B9=85?= =?UTF-8?q?=EF=BC=8C=E5=88=A0=E9=99=A4TestGenKeyWithTag=E6=B5=8B=E8=AF=95?= =?UTF-8?q?=E3=80=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- dns/xperi/dnssec_test.go | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/dns/xperi/dnssec_test.go b/dns/xperi/dnssec_test.go index 629a2d2..9d31d9c 100644 --- a/dns/xperi/dnssec_test.go +++ b/dns/xperi/dnssec_test.go @@ -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) {