From: qydysky Date: Thu, 25 May 2023 18:33:46 +0000 (+0800) Subject: add X-Git-Tag: v0.27.14 X-Git-Url: http://127.0.0.1:8081/?a=commitdiff_plain;h=79575a98c0c9e9ebfe493a5137af2654aaf025e2;p=part%2F.git add --- diff --git a/sync/Map_test.go b/sync/Map_test.go index 609d2c9..fa71d0f 100644 --- a/sync/Map_test.go +++ b/sync/Map_test.go @@ -336,7 +336,8 @@ func Benchmark_syncMap_Range(b *testing.B) { func TestMapExceeded1(t *testing.T) { var m MapExceeded[string, []byte] - m.Store("1", []byte("1"), time.Second) + var data = []byte("1") + m.Store("1", &data, time.Second) if b, ok := m.Load("1"); !ok || 0 != bytes.Compare(*b, []byte("1")) { t.Fatal(ok, b) }