Skip to content

Commit 9d5e605

Browse files
Query: throws store is closed on subscribe (#818)
1 parent 2864d99 commit 9d5e605

File tree

1 file changed

+1
-2
lines changed
  • tests/objectbox-java-test/src/test/java/io/objectbox/query

1 file changed

+1
-2
lines changed

tests/objectbox-java-test/src/test/java/io/objectbox/query/QueryTest.java

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -185,8 +185,7 @@ public void useAfterStoreClose_failsIfUsingStore() {
185185
query.setParameters("oneOfS", new String[]{"a", "b"});
186186
query.setParameter(simpleByteArray, new byte[]{1, 2});
187187

188-
// Internal thread pool is shut down as part of closing store, should no longer accept new work.
189-
assertThrows(RejectedExecutionException.class, () -> query.subscribe().observer(data -> {
188+
assertThrowsStoreIsClosed(() -> query.subscribe().observer(data -> {
190189
}));
191190
}
192191

0 commit comments

Comments
 (0)