forked from TrueCloudLab/frostfs-node
[#1657] engine: Fix data race in evacuation tests
Signed-off-by: Dmitrii Stepanov <d.stepanov@yadro.com>
This commit is contained in:
parent
dae0949f6e
commit
f448babb99
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