Skip to content

Commit

Permalink
Re-add or assertion statement to 'storeObject_objectLockedIds_TwoThre…
Browse files Browse the repository at this point in the history
…ads' for 'PidObjectAlreadyExistsException'
  • Loading branch information
doulikecookiedough committed Jun 27, 2023
1 parent de5d52a commit bfd8cfa
Showing 1 changed file with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -456,8 +456,9 @@ public void storeObject_objectLockedIds_TwoThreads() throws Exception {
assertTrue(permAddress.exists());
}
} catch (Exception e) {
System.out.println(e.getClass());
e.printStackTrace();
assertTrue(e instanceof RuntimeException);
assertTrue(e instanceof RuntimeException || e instanceof PidObjectExistsException);
}
});
Future<?> future2 = executorService.submit(() -> {
Expand All @@ -470,8 +471,9 @@ public void storeObject_objectLockedIds_TwoThreads() throws Exception {
assertTrue(permAddress.exists());
}
} catch (Exception e) {
System.out.println(e.getClass());
e.printStackTrace();
assertTrue(e instanceof RuntimeException);
assertTrue(e instanceof RuntimeException || e instanceof PidObjectExistsException);
}
});

Expand Down

0 comments on commit bfd8cfa

Please sign in to comment.