mirror of
https://github.com/httprunner/httprunner.git
synced 2026-09-06 07:57:27 +08:00
fix: race error
This commit is contained in:
@@ -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")
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user