Skip to content

Commit

Permalink
Fixed failing test.
Browse files Browse the repository at this point in the history
Works locally and with JDK12. Maybe the systems tmp directory is not accessible at travis...
  • Loading branch information
freimair committed Sep 5, 2019
1 parent 1c72b46 commit efa257d
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion p2p/src/test/java/bisq/network/p2p/network/MultiHSTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -159,7 +159,8 @@ public void migrateHiddenService() throws InterruptedException, IOException {
public void exportHiddenService() throws InterruptedException, IOException {
startAndStopDUT(DUT);

File file = File.createTempFile("exportedHS", ".bisq");
File file = File.createTempFile("exportedHS", ".bisq", hiddenServiceDir.getParentFile());
file.delete();

DUT.exportHiddenService(file);

Expand Down Expand Up @@ -213,6 +214,8 @@ public void removeHiddenService() throws InterruptedException {

DUT.clearHiddenServices(new HashSet<>());

Thread.sleep(2000);

Assert.assertNotEquals("Even the current HS has been deleted!", 0, hiddenServiceDir.list().length);
Assert.assertEquals(1, hiddenServiceDir.list().length);

Expand Down

0 comments on commit efa257d

Please sign in to comment.