fix: race error

This commit is contained in:
debugtalk
2021-12-23 18:53:00 +08:00
parent 2ea2227b1a
commit e9513b508d
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")
}