Skip to content

Commit

Permalink
cmd/storagenode: fix flaky test
Browse files Browse the repository at this point in the history
Not a proper fix but it's becoming super flaky

Change-Id: I74e7e4d4c7f2e5121f5eeb3e7fc7c0f36fb0add9
  • Loading branch information
profclems authored and Storj Robot committed May 7, 2024
1 parent 4d93a3c commit 8c42f43
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
3 changes: 3 additions & 0 deletions cmd/storagenode/cmd_forget_satellite_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,9 @@ func TestCmdForgetSatellite(t *testing.T) {
// pause the forget satellite chore
planet.StorageNodes[0].ForgetSatellite.Chore.Loop.Pause()

// TODO(clement): remove this once I figure out why it's flaky
planet.StorageNodes[0].NodeStats.Cache.Reputation.Pause()

address := planet.StorageNodes[0].Server.PrivateAddr().String()
log := zaptest.NewLogger(t)

Expand Down
3 changes: 3 additions & 0 deletions storagenode/forgetsatellite/cleaner_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,9 @@ func TestCleaner(t *testing.T) {
// pause the chore
storagenode.ForgetSatellite.Chore.Loop.Pause()

// TODO(clement): remove this once I figure out why it's flaky
planet.StorageNodes[0].NodeStats.Cache.Reputation.Pause()

store := planet.StorageNodes[0].Storage2.BlobsCache
defer ctx.Check(store.Close)

Expand Down

0 comments on commit 8c42f43

Please sign in to comment.