mirror of
https://github.com/bisq-network/bisq.git
synced 2025-02-22 14:42:37 +01:00
Use mainnet notwork id for test as testnet does not has any seed node defined
This commit is contained in:
parent
b9c15f477d
commit
a188aa6dfa
1 changed files with 2 additions and 7 deletions
|
@ -21,14 +21,9 @@ import bisq.core.app.BisqEnvironment;
|
|||
|
||||
import bisq.network.p2p.NodeAddress;
|
||||
|
||||
import org.bouncycastle.jce.provider.BouncyCastleProvider;
|
||||
|
||||
import java.security.Security;
|
||||
|
||||
import java.util.Collections;
|
||||
import java.util.Set;
|
||||
|
||||
import org.junit.Before;
|
||||
import org.junit.Test;
|
||||
|
||||
import static org.junit.Assert.assertEquals;
|
||||
|
@ -41,7 +36,7 @@ public class SeedNodeAddressLookupTest {
|
|||
@Test
|
||||
public void testResolveNodeAddressesWhenLocalAddressSpecified() {
|
||||
SeedNodeAddressLookup lookup = new SeedNodeAddressLookup(
|
||||
mock(BisqEnvironment.class), false, 1, "192.168.0.1:1234",
|
||||
mock(BisqEnvironment.class), false, 0, "192.168.0.1:1234",
|
||||
"192.168.0.1:1234, 192.168.0.2:9897");
|
||||
|
||||
Set<NodeAddress> actual = lookup.resolveNodeAddresses();
|
||||
|
@ -52,7 +47,7 @@ public class SeedNodeAddressLookupTest {
|
|||
@Test
|
||||
public void testResolveNodeAddressesWhenSeedNodesAreNull() {
|
||||
SeedNodeAddressLookup lookup = new SeedNodeAddressLookup(
|
||||
mock(BisqEnvironment.class), false, 1, "192.168.0.1:1234", null);
|
||||
mock(BisqEnvironment.class), false, 0, "192.168.0.1:1234", null);
|
||||
|
||||
Set<NodeAddress> actual = lookup.resolveNodeAddresses();
|
||||
assertFalse(actual.isEmpty());
|
||||
|
|
Loading…
Add table
Reference in a new issue