HTTPCLIENT-1108: increase timing intervals on thread-related tests to reduce
chances of race conditions. git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1151554 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
8e3a323a32
commit
3d933f9582
|
@ -369,9 +369,9 @@ public class TestConnPoolByRoute extends ServerTestBase {
|
|||
}
|
||||
});
|
||||
t.start();
|
||||
Thread.sleep(1);
|
||||
Thread.sleep(5);
|
||||
impl.freeEntry(entry, true, 1000, TimeUnit.MILLISECONDS);
|
||||
Thread.sleep(1);
|
||||
Thread.sleep(5);
|
||||
assertTrue(f.flag);
|
||||
}
|
||||
|
||||
|
@ -393,9 +393,9 @@ public class TestConnPoolByRoute extends ServerTestBase {
|
|||
}
|
||||
});
|
||||
t.start();
|
||||
Thread.sleep(1);
|
||||
Thread.sleep(5);
|
||||
impl.freeEntry(entry, true, 1000, TimeUnit.MILLISECONDS);
|
||||
Thread.sleep(1);
|
||||
Thread.sleep(5);
|
||||
assertTrue(f.flag);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue