satellite/accounting: try fix test ResetLimitsFirstDayOfNextMonth
TestProjectUsage_ResetLimitsFirstDayOfNextMonth seems to be flaky. It doesn't seem to reproduce easily, however it should flush orders from storagenodes to satellites, that way the orders chore flushing on the satellite makes sense. Change-Id: I586d9d8ce10b5f6320e79324f6128b4f8c2cac5f
This commit is contained in:
parent
1137620baf
commit
62a2d05ae6
@ -646,6 +646,12 @@ func TestProjectUsage_ResetLimitsFirstDayOfNextMonth(t *testing.T) {
|
||||
_, err = planet.Uplinks[0].Download(ctx, planet.Satellites[0], "testbucket", "test/path1")
|
||||
require.NoError(t, err)
|
||||
|
||||
require.NoError(t, planet.WaitForStorageNodeEndpoints(ctx))
|
||||
tomorrow := time.Now().Add(24 * time.Hour)
|
||||
for _, storageNode := range planet.StorageNodes {
|
||||
storageNode.Storage2.Orders.SendOrders(ctx, tomorrow)
|
||||
}
|
||||
|
||||
planet.Satellites[0].Orders.Chore.Loop.TriggerWait()
|
||||
|
||||
// verify that bandwidth limit is all used
|
||||
|
Loading…
Reference in New Issue
Block a user