Skip to content

Commit 6678086

Browse files
committed
fix unit test for windows' lower LocalDateTime.now() resolution
1 parent 97ad99b commit 6678086

File tree

1 file changed

+1
-1
lines changed
  • multiapps-controller-shutdown-client/src/test/java/org/cloudfoundry/multiapps/controller/shutdown/client/util

1 file changed

+1
-1
lines changed

multiapps-controller-shutdown-client/src/test/java/org/cloudfoundry/multiapps/controller/shutdown/client/util/ShutdownUtilTest.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ void testAreThereUnstoppedInstancesWithAllStoppedInstances() {
3636
@Test
3737
void testIsTimeoutExceededWithTimeOutExceeded() {
3838
LocalDateTime timeBeforeTenMinutes = LocalDateTime.now()
39-
.minusSeconds(ShutdownUtil.TIMEOUT_IN_SECONDS);
39+
.minusSeconds(ShutdownUtil.TIMEOUT_IN_SECONDS + 1);
4040
ApplicationShutdown applicationShutdownInstance = createApplicationShutdownInstance(true, timeBeforeTenMinutes);
4141

4242
assertTrue(ShutdownUtil.isTimeoutExceeded(applicationShutdownInstance));

0 commit comments

Comments
 (0)