mirror of
https://github.com/dolthub/dolt.git
synced 2026-04-26 03:30:09 -05:00
go: remotestorage: Fix data race in writebuffer_test.go.
This commit is contained in:
@@ -114,10 +114,11 @@ func TestMapWriteBuffer(t *testing.T) {
|
||||
cached := cache.GetAllForWrite()
|
||||
writes += 1
|
||||
time.Sleep(5 * time.Millisecond)
|
||||
cache.WriteCompleted(false)
|
||||
if len(cached) == numThreads*32 {
|
||||
cache.WriteCompleted(false)
|
||||
return
|
||||
}
|
||||
cache.WriteCompleted(false)
|
||||
time.Sleep(100 * time.Microsecond)
|
||||
}
|
||||
}()
|
||||
|
||||
Reference in New Issue
Block a user