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:
Jonathan Moore 2011-07-27 17:42:54 +00:00
parent 8e3a323a32
commit 3d933f9582
1 changed files with 4 additions and 4 deletions

View File

@ -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);
}