Skip to content

Commit

Permalink
Merge pull request #121 from relab/fix-flaky-eventloop-test-handler
Browse files Browse the repository at this point in the history
Fix flaky TestHandler
  • Loading branch information
meling authored Mar 9, 2024
2 parents 6c1fcb7 + 8685fd9 commit 6e1f14d
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
6 changes: 6 additions & 0 deletions .github/codecov.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
coverage:
status:
project:
default:
target: auto
threshold: 1%
3 changes: 3 additions & 0 deletions eventloop/eventloop_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,9 @@ func TestHandler(t *testing.T) {
defer cancel()
go el.Run(ctx)

// wait for the event loop to start
time.Sleep(1 * time.Millisecond)

want := testEvent(42)
el.AddEvent(want)

Expand Down

0 comments on commit 6e1f14d

Please sign in to comment.