Skip to content

Commit b68d832

Browse files
committed
Recovery sleep failure
1 parent 3e85b25 commit b68d832

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

src/main/java/dev/dbos/transact/database/StepsDAO.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -257,6 +257,7 @@ public double sleep(String workflowUuid, int functionId, double seconds, boolean
257257

258258
if (!skipSleep) {
259259
try {
260+
logger.debug("Sleeping for duration " + String.valueOf(duration));
260261
Thread.sleep((long) (duration * 1000));
261262
} catch (InterruptedException e) {
262263
Thread.currentThread().interrupt();

src/test/java/dev/dbos/transact/execution/DBOSExecutorTest.java

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -343,8 +343,7 @@ public void sleepRecovery() throws Exception {
343343
h.getResult();
344344

345345
long duration = System.currentTimeMillis() - starttime ;
346-
347-
assertTrue(duration >= 1500);
346+
assertTrue(duration >= 1000);
348347

349348
}
350349

0 commit comments

Comments
 (0)