Skip to content
This repository has been archived by the owner on Jan 6, 2025. It is now read-only.

Commit

Permalink
Fix TestConnect TypeExit/TypeClose race
Browse files Browse the repository at this point in the history
  • Loading branch information
tsipinakis committed Aug 12, 2024
1 parent 226cdb9 commit 69b37a7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion internal/auditlogintegration/integration_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -152,7 +152,7 @@ func checkStoredAuditMessages(t *testing.T, dir string, logger log.Logger) {
assert.Equal(t, message.TypeHandshakeSuccessful, messages[3].MessageType)
assert.Equal(t, message.TypeNewChannelSuccessful, messages[4].MessageType)
assert.Equal(t, message.TypeChannelRequestShell, messages[5].MessageType)
assert.Equal(t, message.TypeClose, messages[6].MessageType)
assert.True(t, messages[6].MessageType == message.TypeExit || messages[6].MessageType == message.TypeClose)
assert.True(t, messages[7].MessageType == message.TypeExit || messages[7].MessageType == message.TypeDisconnect)
assert.True(t, messages[8].MessageType == message.TypeExit || messages[8].MessageType == message.TypeDisconnect)
}
Expand Down

0 comments on commit 69b37a7

Please sign in to comment.