Skip to content
Snippets Groups Projects
Commit 1173e0a5 authored by akwizgran's avatar akwizgran
Browse files

Increased sleep intervals to avoid a race.

parent ef61eaa8
No related branches found
No related tags found
No related merge requests found
......@@ -45,12 +45,12 @@ public class SimpleSocketPluginTest extends TestCase {
Socket s = new Socket();
assertEquals(0, callback.incomingConnections);
s.connect(addr, 100);
Thread.sleep(10);
Thread.sleep(100);
assertEquals(1, callback.incomingConnections);
s.close();
// Stop the plugin
plugin.stop();
Thread.sleep(10);
Thread.sleep(100);
// The plugin should no longer be listening
try {
s = new Socket();
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment