diff --git a/common/types/admin_test.go b/common/types/admin_test.go index 535b8eb5022..6613e32bd7d 100644 --- a/common/types/admin_test.go +++ b/common/types/admin_test.go @@ -24,7 +24,6 @@ package types import ( "testing" - "unsafe" "github.com/stretchr/testify/assert" ) @@ -619,8 +618,3 @@ func TestGetWorkflowExecutionRawHistoryV2Response_GetVersionHistory(t *testing.T func ptrInt64(i int64) *int64 { return &i } - -// identicalByteArray returns true if a and b are the same slice, false otherwise. -func identicalByteArray(a, b []byte) bool { - return len(a) == len(b) && unsafe.SliceData(a) == unsafe.SliceData(b) -} diff --git a/common/types/shared_test.go b/common/types/shared_test.go index 59abaeb3efa..332a8a3afce 100644 --- a/common/types/shared_test.go +++ b/common/types/shared_test.go @@ -24,6 +24,7 @@ package types import ( "testing" + "unsafe" "github.com/stretchr/testify/assert" ) @@ -68,3 +69,8 @@ func TestDataBlobDeepCopy(t *testing.T) { }) } } + +// identicalByteArray returns true if a and b are the same slice, false otherwise. +func identicalByteArray(a, b []byte) bool { + return len(a) == len(b) && unsafe.SliceData(a) == unsafe.SliceData(b) +}