Skip to content

Commit

Permalink
Fix connect message race
Browse files Browse the repository at this point in the history
  • Loading branch information
tsipinakis committed Aug 15, 2024
1 parent c557aab commit 5db135d
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions internal/auditlogintegration/integration_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -99,6 +99,10 @@ func TestConnectMessages(t *testing.T) {
if err := session.Close(); err != nil {
t.Fatal(err)
}
// Yield enough for the session to close, if we close the
// connection too soon then some of the closing steps might be
// bypassed making the check fail
time.Sleep(10 * time.Millisecond)
if err := connection.Close(); err != nil {
t.Fatal(err)
}
Expand Down

0 comments on commit 5db135d

Please sign in to comment.