fix: race error

This commit is contained in:
debugtalk
2021-12-23 18:53:00 +08:00
parent 81b4f6451e
commit 970734607e
4 changed files with 6 additions and 9 deletions
+1 -1
View File
@@ -85,7 +85,7 @@ func TestStandaloneRun(t *testing.T) {
b.Quit()
if count != 10 {
if atomic.LoadInt64(&count) != 10 {
t.Error("count is", count, "expected: 10")
}