engine: Fix data race in evacuation tests #1657

Merged
fyrchik merged 1 commit from dstepanov-yadro/frostfs-node:fix/evac_test_race into master 2025-02-28 14:14:15 +00:00
Showing only changes of commit f448babb99 - Show all commits

View file

@ -475,7 +475,7 @@ func TestEvacuateObjectsAsync(t *testing.T) {
eg, egCtx := errgroup.WithContext(context.Background())
eg.Go(func() error {
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")
return nil
})