mirror of
https://code.briarproject.org/briar/briar.git
synced 2026-02-21 23:29:52 +01:00
Minutes were invented in Java 1.6, apparently.
This commit is contained in:
@@ -28,7 +28,7 @@ public class TorPluginTest extends BriarTestCase {
|
|||||||
TorPlugin serverPlugin = new TorPlugin(e, serverCallback, 0L);
|
TorPlugin serverPlugin = new TorPlugin(e, serverCallback, 0L);
|
||||||
serverPlugin.start();
|
serverPlugin.start();
|
||||||
// The plugin should create a hidden service... eventually
|
// The plugin should create a hidden service... eventually
|
||||||
serverCallback.latch.await(5, TimeUnit.MINUTES);
|
serverCallback.latch.await(300, TimeUnit.SECONDS);
|
||||||
String onion = serverCallback.local.get("onion");
|
String onion = serverCallback.local.get("onion");
|
||||||
assertNotNull(onion);
|
assertNotNull(onion);
|
||||||
assertTrue(onion.endsWith(".onion"));
|
assertTrue(onion.endsWith(".onion"));
|
||||||
@@ -57,7 +57,7 @@ public class TorPluginTest extends BriarTestCase {
|
|||||||
TorPlugin plugin = new TorPlugin(e, callback, 0L);
|
TorPlugin plugin = new TorPlugin(e, callback, 0L);
|
||||||
plugin.start();
|
plugin.start();
|
||||||
// The plugin should create a hidden service... eventually
|
// The plugin should create a hidden service... eventually
|
||||||
callback.latch.await(5, TimeUnit.MINUTES);
|
callback.latch.await(300, TimeUnit.SECONDS);
|
||||||
String onion = callback.local.get("onion");
|
String onion = callback.local.get("onion");
|
||||||
assertNotNull(onion);
|
assertNotNull(onion);
|
||||||
assertTrue(onion.endsWith(".onion"));
|
assertTrue(onion.endsWith(".onion"));
|
||||||
@@ -71,7 +71,7 @@ public class TorPluginTest extends BriarTestCase {
|
|||||||
plugin = new TorPlugin(e, callback, 0L);
|
plugin = new TorPlugin(e, callback, 0L);
|
||||||
plugin.start();
|
plugin.start();
|
||||||
// The plugin should create a hidden service... eventually
|
// The plugin should create a hidden service... eventually
|
||||||
callback.latch.await(5, TimeUnit.MINUTES);
|
callback.latch.await(300, TimeUnit.SECONDS);
|
||||||
// The onion URL should be the same
|
// The onion URL should be the same
|
||||||
assertEquals(onion, callback.local.get("onion"));
|
assertEquals(onion, callback.local.get("onion"));
|
||||||
// The private key should be the same
|
// The private key should be the same
|
||||||
|
|||||||
Reference in New Issue
Block a user