Commit 757c68b
fix(tests): use portpicker for ephemeral port in default_role_integration_test
Hardcoded port 8085 caused intermittent "Address already in use (os error 98)"
failures when the OS had not yet released the port from a prior test run.
Replace with portpicker::pick_unused_port() following the pattern already used
in tests/server.rs. portpicker is already a crate dependency.
Refs #2947
Co-Authored-By: Terraphim AI <noreply@terraphim.ai>1 parent 236d747 commit 757c68b
1 file changed
Lines changed: 4 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
115 | 115 | | |
116 | 116 | | |
117 | 117 | | |
118 | | - | |
119 | | - | |
| 118 | + | |
| 119 | + | |
| 120 | + | |
120 | 121 | | |
121 | 122 | | |
122 | 123 | | |
| |||
129 | 130 | | |
130 | 131 | | |
131 | 132 | | |
132 | | - | |
| 133 | + | |
133 | 134 | | |
134 | 135 | | |
135 | 136 | | |
| |||
0 commit comments