mirror of
https://code.briarproject.org/briar/briar.git
synced 2026-02-20 14:49:53 +01:00
Increased sleep intervals to avoid a race.
This commit is contained in:
@@ -45,12 +45,12 @@ public class SimpleSocketPluginTest extends TestCase {
|
|||||||
Socket s = new Socket();
|
Socket s = new Socket();
|
||||||
assertEquals(0, callback.incomingConnections);
|
assertEquals(0, callback.incomingConnections);
|
||||||
s.connect(addr, 100);
|
s.connect(addr, 100);
|
||||||
Thread.sleep(10);
|
Thread.sleep(100);
|
||||||
assertEquals(1, callback.incomingConnections);
|
assertEquals(1, callback.incomingConnections);
|
||||||
s.close();
|
s.close();
|
||||||
// Stop the plugin
|
// Stop the plugin
|
||||||
plugin.stop();
|
plugin.stop();
|
||||||
Thread.sleep(10);
|
Thread.sleep(100);
|
||||||
// The plugin should no longer be listening
|
// The plugin should no longer be listening
|
||||||
try {
|
try {
|
||||||
s = new Socket();
|
s = new Socket();
|
||||||
|
|||||||
Reference in New Issue
Block a user