bugsnag / bugsnag-go

Automatic panic monitoring for Go and Go web frameworks, like negroni, gin, and revel
https://docs.bugsnag.com/platforms/go
MIT License
203 stars 69 forks source link

Fix session tracking test - wait for all sessions to be processed #218

Closed DariaKunoichi closed 6 months ago

DariaKunoichi commented 6 months ago

Goal

Session counting test was flaky - probably did not wait for all the sessions to be consumed.

Design

-

Changeset

Increased wait duration after sessions were created so they can be all consumed by st.processSessions thread.

Testing

Unit tests for session tracker changed.