engine: Fix data race in evacuation tests #1657
1 changed files with 1 additions and 1 deletions
|
@ -475,7 +475,7 @@ func TestEvacuateObjectsAsync(t *testing.T) {
|
||||||
eg, egCtx := errgroup.WithContext(context.Background())
|
eg, egCtx := errgroup.WithContext(context.Background())
|
||||||
eg.Go(func() error {
|
eg.Go(func() error {
|
||||||
require.NoError(t, e.Evacuate(egCtx, prm), "first evacuation failed")
|
require.NoError(t, e.Evacuate(egCtx, prm), "first evacuation failed")
|
||||||
st = testWaitForEvacuationCompleted(t, e)
|
st := testWaitForEvacuationCompleted(t, e)
|
||||||
require.Equal(t, uint64(3), st.ObjectsEvacuated(), "invalid final count")
|
require.Equal(t, uint64(3), st.ObjectsEvacuated(), "invalid final count")
|
||||||
return nil
|
return nil
|
||||||
})
|
})
|
||||||
|
|
Loading…
Add table
Reference in a new issue