chore: better maphash test

This commit is contained in:
wwqgtxx
2025-11-03 15:34:46 +08:00
parent 421dc79aea
commit fd39c2a7fc
3 changed files with 7 additions and 1 deletions

View File

@@ -423,7 +423,9 @@ func TestWriteComparableNoncommute(t *testing.T) {
}
func TestComparableAllocations(t *testing.T) {
t.Skip("test broken in old golang version")
if !testComparableAllocations {
t.Skip("test broken in old golang version")
}
seed := MakeSeed()
x := heapStr(t)
allocs := testing.AllocsPerRun(10, func() {