Skip to content

Commit

Permalink
Merge pull request #218 from bugsnag/daria-PLAT-11686
Browse files Browse the repository at this point in the history
Fix session tracking test - wait for all sessions to be processed
  • Loading branch information
DariaKunoichi committed Mar 5, 2024
2 parents 0cd4418 + 01eb27c commit 769271f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion v2/sessions/tracker_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ func TestShouldOnlyWriteWhenReceivingSessions(t *testing.T) {
for i := 0; i < 50000; i++ {
st.StartSession(context.Background())
}
time.Sleep(st.config.PublishInterval * 2)
time.Sleep(time.Millisecond * 500) // wait for sessions to get consumed

var sessions []*Session
pub.mutex.Lock()
Expand Down

0 comments on commit 769271f

Please sign in to comment.