Skip to content
This repository has been archived by the owner on Aug 23, 2020. It is now read-only.

Commit

Permalink
Added null params to tests (null checks are in the code)
Browse files Browse the repository at this point in the history
  • Loading branch information
kwek20 authored and Brord van Wierst committed Apr 25, 2019
1 parent 067d41c commit 7cee38c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/test/java/com/iota/iri/TransactionValidatorTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -55,10 +55,10 @@ public static void tearDown() throws Exception {

@Test
public void testMinMwm() throws InterruptedException {
txValidator.init(false, 5);
txValidator.init(false, 5, null);
assertTrue(txValidator.getMinWeightMagnitude() == 13);
txValidator.shutdown();
txValidator.init(false, MAINNET_MWM);
txValidator.init(false, MAINNET_MWM, null);
}

@Test
Expand Down
2 changes: 1 addition & 1 deletion src/test/java/com/iota/iri/network/NodeTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ public void setUp() {

// set up class under test
nodeConfig = Mockito.mock(NodeConfig.class);
classUnderTest = new Node(null, null, null, null, null, null, nodeConfig);
classUnderTest = new Node(null, null, null, null, null, null, nodeConfig, null);

// verify config calls in Node constructor
verify(nodeConfig).getRequestHashSize();
Expand Down

0 comments on commit 7cee38c

Please sign in to comment.