Skip to content

Commit

Permalink
e2e: address review comment
Browse files Browse the repository at this point in the history
  • Loading branch information
ChrisSchinnerl committed Mar 6, 2024
1 parent 7bbafb0 commit 991d89d
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions internal/test/e2e/gouging_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -106,8 +106,9 @@ func TestGouging(t *testing.T) {
// set optimised settings
tt.OK(b.UpdateSetting(context.Background(), api.SettingGouging, resp.Recommendation.GougingSettings))

// renter should recover and be able to upload again

// upload some data - should fail
tt.FailAll(w.UploadObject(context.Background(), bytes.NewReader(data), api.DefaultBucketName, path, api.UploadObjectOptions{}))
// upload some data - should work now once contract maintenance is done
tt.Retry(30, time.Second, func() error {
_, err := w.UploadObject(context.Background(), bytes.NewReader(data), api.DefaultBucketName, path, api.UploadObjectOptions{})
return err
})
}

0 comments on commit 991d89d

Please sign in to comment.