Skip to content

Commit

Permalink
In session tracker test wait longer for sessions to get consumed
Browse files Browse the repository at this point in the history
  • Loading branch information
DariaKunoichi committed Mar 4, 2024
1 parent 0cd4418 commit 01eb27c
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 01eb27c

Please sign in to comment.