Skip to content

Commit

Permalink
Fix cli test that blocks building on Windows
Browse files Browse the repository at this point in the history
  • Loading branch information
BtcContributor committed Apr 23, 2021
1 parent 469448a commit a39da12
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion cli/src/test/java/bisq/cli/opt/OptionParsersTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -176,8 +176,12 @@ public void testCreatePaymentAcctOptParserWithInvalidPaymentFormOptValueShouldTh
};
Throwable exception = assertThrows(RuntimeException.class, () ->
new CreatePaymentAcctOptionParser(args).parse());
assertEquals("json payment account form '/tmp/milkyway/solarsystem/mars' could not be found",
if (System.getProperty("os.name").toLowerCase().indexOf("win") >= 0)
assertEquals("json payment account form '\\tmp\\milkyway\\solarsystem\\mars' could not be found",
exception.getMessage());
else
assertEquals("json payment account form '/tmp/milkyway/solarsystem/mars' could not be found",
exception.getMessage());
}

// createcryptopaymentacct parser tests
Expand Down

0 comments on commit a39da12

Please sign in to comment.