satellite/metainfo: ensure storagenodes finish work for test
Some processing inside storagenodes is async compared to uplink upload and download, hence we need to explicitly wait for storagenodes to finish their pending work before flushing orders to the satellite. Hopefully this fixes TestAttributionReport flakiness. Change-Id: I77c651ab6471ae094b5c21d1ab3860c96cb0d039
This commit is contained in:
parent
8b91c55ec4
commit
df09e7d1f7
@ -288,6 +288,9 @@ func TestAttributionReport(t *testing.T) {
|
|||||||
require.NoError(t, err)
|
require.NoError(t, err)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Wait for the storage nodes to be done processing the download
|
||||||
|
require.NoError(t, planet.WaitForStorageNodeEndpoints(ctx))
|
||||||
|
|
||||||
{ // Flush all the pending information through the system.
|
{ // Flush all the pending information through the system.
|
||||||
// Calculate the usage used for upload
|
// Calculate the usage used for upload
|
||||||
for _, sn := range planet.StorageNodes {
|
for _, sn := range planet.StorageNodes {
|
||||||
|
Loading…
Reference in New Issue
Block a user