storagenode/console/consoleapi: fix flaky test

Change-Id: I1af928953a19155e3c2e9f8c63e7162978e7b475
This commit is contained in:
Jeff Wendling 2021-02-17 13:56:41 -05:00 committed by JT Olio
parent 9e7e753faf
commit 3eb321fd33

View File

@ -35,6 +35,9 @@ func TestHeldAmountApi(t *testing.T) {
reputationDB := sno.DB.Reputation()
baseURL := fmt.Sprintf("http://%s/api/heldamount", console.Listener.Addr())
// pause nodestats reputation cache because later tests assert a specific joinedat.
sno.NodeStats.Cache.Reputation.Pause()
period := "2020-03"
paystub := payouts.PayStub{
SatelliteID: satellite.ID(),