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 authored and dnwe committed Aug 21, 2023
1 parent 827ec18 commit 53f600d
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 53f600d

Please sign in to comment.