Commit db4e29c
fix(test): add await for server connection registration in idempotent test
The connectIsIdempotentWhenConnected test was flaky because it checked
mockRelay.getConnectionCount() immediately after client.connect() returned.
Due to async nature, the server's onOpen callback may not have executed yet.
Added mockRelay.awaitConnection() to wait for server-side connection
registration before asserting connection count.
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>1 parent f0ee151 commit db4e29c
1 file changed
Lines changed: 2 additions & 0 deletions
File tree
- nsecbunker-tests/nsecbunker-it/src/test/java/xyz/tcheeric/nsecbunker/admin/integration
Lines changed: 2 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
86 | 86 | | |
87 | 87 | | |
88 | 88 | | |
| 89 | + | |
| 90 | + | |
89 | 91 | | |
90 | 92 | | |
91 | 93 | | |
| |||
0 commit comments