From 7fa49016f4e96f63886989a01e7eb3abd3e86a6a Mon Sep 17 00:00:00 2001 From: danwt <30197399+danwt@users.noreply.github.com> Date: Fri, 20 Dec 2024 14:25:55 +0000 Subject: [PATCH] del useless test --- types/dym_header_test.go | 20 -------------------- 1 file changed, 20 deletions(-) delete mode 100644 types/dym_header_test.go diff --git a/types/dym_header_test.go b/types/dym_header_test.go deleted file mode 100644 index 63cdb4be1..000000000 --- a/types/dym_header_test.go +++ /dev/null @@ -1,20 +0,0 @@ -package types - -import ( - "testing" - - proto "github.com/gogo/protobuf/types" -) - -func TestConsMessagesHashNilAndZeroLength(t *testing.T) { - // Compute hash with nil - hashNil := ConsMessagesHash(nil) - - // Compute hash with zero-length slice - hashZeroLength := ConsMessagesHash([]*proto.Any{}) - - // Compare the two hashes - if hashNil != hashZeroLength { - t.Errorf("Expected hashes to be the same, but got different hashes: %x and %x", hashNil, hashZeroLength) - } -}