Skip to content

Commit

Permalink
worker: fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
peterjan committed Feb 29, 2024
1 parent 5420d04 commit 611d712
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions worker/upload_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -252,15 +252,17 @@ func TestUploadPackedSlab(t *testing.T) {

// unblock asynchronous uploads
w.UnblockAsyncPackedSlabUploads(params)
uploadBytes(1) // ensure bg thread is running
uploadBytes(129) // ensure bg thread is running

// assert packed slabs get uploaded asynchronously
err = build.Retry(10, 100*time.Millisecond, func() error {
if err = build.Retry(10, 100*time.Millisecond, func() error {
if packedSlabsCount() != 0 {
return errors.New("expected 0 packed slab")
return errors.New("expected 0 packed slabs")
}
return nil
})
}); err != nil {
t.Fatal(err)
}
}

func TestUploadShards(t *testing.T) {
Expand Down

0 comments on commit 611d712

Please sign in to comment.