Skip to content

Commit fb57bf3

Browse files
author
Nexus
committed
fix: resolve test issues
- Fix strconv.FormatUint in concurrenceMap_test.go - Add GlobalState variable in core/state.go
1 parent fd14da5 commit fb57bf3

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(strconv.FormatUint(num, 10), 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(strconv.FormatUint(num, 10), num)
8585
}
8686
})
8787
}

0 commit comments

Comments
 (0)