Skip to content

Commit

Permalink
fix: flaky TestFuncOffsetManager
Browse files Browse the repository at this point in the history
Signed-off-by: napallday <[email protected]>
  • Loading branch information
napallday committed Aug 20, 2023
1 parent 8681621 commit a29d212
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions functional_offset_manager_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,9 @@ func TestFuncOffsetManager(t *testing.T) {
pom1.MarkOffset(10, "test metadata")
safeClose(t, pom1)

// Avoid flaky test: submit offset & let om cleanup removed poms
offsetManager.Commit()

pom2, err := offsetManager.ManagePartition("test.1", 0)
if err != nil {
t.Fatal(err)
Expand Down

0 comments on commit a29d212

Please sign in to comment.