We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 77e1eae commit 993d36fCopy full SHA for 993d36f
redis/tests/support/mod.rs
@@ -383,7 +383,7 @@ impl RedisServer {
383
/// process, so this must be used with care (since here we only use it for tests, it's
384
/// mostly okay).
385
pub fn get_random_available_port() -> u16 {
386
- for _ in 0..100 {
+ for _ in 0..10000 {
387
let addr = &"127.0.0.1:0".parse::<SocketAddr>().unwrap().into();
388
let socket = Socket::new(Domain::IPV4, Type::STREAM, None).unwrap();
389
socket.set_reuse_address(true).unwrap();
0 commit comments