satellite/repair/repairer: fix flaky TestSegmentRepairPlacement
Sometimes DownloadSelectionCache doesn't keep up with all node placement changes we are doing during this test. Change-Id: Idbda6511e3324b560cee3be85f980bf8d5b9b7ef
This commit is contained in:
parent
5a1c3f7f19
commit
5234727886
@ -120,6 +120,8 @@ func TestSegmentRepairPlacement(t *testing.T) {
|
||||
require.NoError(t, err)
|
||||
require.True(t, ok)
|
||||
|
||||
require.NoError(t, planet.Satellites[0].API.Overlay.Service.DownloadSelectionCache.Refresh(ctx))
|
||||
|
||||
data, err := planet.Uplinks[0].Download(ctx, planet.Satellites[0], "testbucket", "object")
|
||||
require.NoError(t, err)
|
||||
require.Equal(t, expectedData, data)
|
||||
|
Loading…
Reference in New Issue
Block a user