Skip to content

Commit

Permalink
Fix tests
Browse files Browse the repository at this point in the history
Signed-off-by: HenrikJannsen <[email protected]>
  • Loading branch information
HenrikJannsen committed Jun 7, 2024
1 parent ddf073a commit 15a68ec
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ public void testSelectPreferredNodesWhenPublicOption() {
Preferences delegate = mock(Preferences.class);
when(delegate.getBitcoinNodesOptionOrdinal()).thenReturn(PUBLIC.ordinal());

BtcNodesSetupPreferences preferences = new BtcNodesSetupPreferences(delegate, Config.DEFAULT_NUM_CONNECTIONS_FOR_BTC_PUBLIC);
BtcNodesSetupPreferences preferences = new BtcNodesSetupPreferences(delegate, Config.DEFAULT_NUM_CONNECTIONS_FOR_BTC_PUBLIC, null);
List<BtcNode> nodes = preferences.selectPreferredNodes(mock(BtcNodes.class));

assertTrue(nodes.isEmpty());
Expand All @@ -51,7 +51,7 @@ public void testSelectPreferredNodesWhenCustomOption() {
when(delegate.getBitcoinNodesOptionOrdinal()).thenReturn(CUSTOM.ordinal());
when(delegate.getBitcoinNodes()).thenReturn("aaa.onion,bbb.onion");

BtcNodesSetupPreferences preferences = new BtcNodesSetupPreferences(delegate, Config.DEFAULT_NUM_CONNECTIONS_FOR_BTC_PUBLIC);
BtcNodesSetupPreferences preferences = new BtcNodesSetupPreferences(delegate, Config.DEFAULT_NUM_CONNECTIONS_FOR_BTC_PUBLIC, null);
List<BtcNode> nodes = preferences.selectPreferredNodes(mock(BtcNodes.class));

assertEquals(2, nodes.size());
Expand Down
2 changes: 2 additions & 0 deletions core/src/test/java/bisq/core/filter/TestFilter.java
Original file line number Diff line number Diff line change
Expand Up @@ -102,6 +102,8 @@ public static Filter createFilter(PublicKey ownerPublicKey, String signerPubKeyA
1,
1,
1,
Collections.emptyList(),
Collections.emptyList(),
Collections.emptyList()
);
}
Expand Down
2 changes: 2 additions & 0 deletions core/src/test/java/bisq/core/user/UserPayloadModelVOTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,8 @@ public void testRoundtripFull() {
0,
0,
0,
Lists.newArrayList(),
Lists.newArrayList(),
Lists.newArrayList()));

vo.setRegisteredArbitrator(ArbitratorTest.getArbitratorMock());
Expand Down

0 comments on commit 15a68ec

Please sign in to comment.