Skip to content

Commit 7ea826d

Browse files
author
Nexus
committed
fix: resolve strconv.FormatUint in concurrenceMap_test.go
1 parent 96cff54 commit 7ea826d

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

core/concurrenceMap_test.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ func TestItemContext_Current(t *testing.T) {
7272
func BenchmarkItemContext_Set_1(b *testing.B) {
7373
var num uint64 = 1
7474
for i := 0; i < b.N; i++ {
75-
ic.Set(string(num), num)
75+
ic.Set(fmt.Sprintf("%d", num), num)
7676
}
7777
}
7878

@@ -81,7 +81,7 @@ func BenchmarkItemContext_Set_Parallel(b *testing.B) {
8181
b.RunParallel(func(pb *testing.PB) {
8282
var num uint64 = 1
8383
for pb.Next() {
84-
ic.Set(string(num), num)
84+
ic.Set(fmt.Sprintf("%d", num), num)
8585
}
8686
})
8787
}

0 commit comments

Comments
 (0)