Skip to content

Commit

Permalink
[KrJWRWJD] Fix flaky testTerminatePeriodicQuery (#297)
Browse files Browse the repository at this point in the history
  • Loading branch information
vga91 authored Jan 23, 2023
1 parent f08caee commit 9067bbd
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test-utils/src/main/java/apoc/periodic/PeriodicTestUtils.java
Original file line number Diff line number Diff line change
Expand Up @@ -48,9 +48,9 @@ public static void testTerminatePeriodicQuery(DbmsRule db, String periodicQuery)
db.executeTransactionally(periodicQuery, Map.of(),
result -> {
Map<String, Object> row = Iterators.single(result);
return row.get("wasTerminated");
return (boolean) row.get("wasTerminated");
}),
(value) -> true, 10L, TimeUnit.SECONDS);
(value) -> value, 15L, TimeUnit.SECONDS);
} catch(Exception tfe) {
assertEquals(tfe.getMessage(),true, tfe.getMessage().contains("terminated"));
}
Expand Down

0 comments on commit 9067bbd

Please sign in to comment.