diff --git a/plume-framework-dependencies/pom.xml b/plume-framework-dependencies/pom.xml
index b91eb3d..b1f26e9 100644
--- a/plume-framework-dependencies/pom.xml
+++ b/plume-framework-dependencies/pom.xml
@@ -43,7 +43,7 @@
5.11.3
3.26.3
5.14.2
- 1.0.0
+ 1.0.1
diff --git a/plume-test/src/test/java/com/coreoz/plume/mocks/MockedClockTest.java b/plume-test/src/test/java/com/coreoz/plume/mocks/MockedClockTest.java
index 87ea5de..a7d3edb 100644
--- a/plume-test/src/test/java/com/coreoz/plume/mocks/MockedClockTest.java
+++ b/plume-test/src/test/java/com/coreoz/plume/mocks/MockedClockTest.java
@@ -76,16 +76,15 @@ void executeWithConstantTime__when_functionExecuted__should_useCurrentInstantTem
}
@Test
- void setTickingClockFromInstant__when_instantProvided__should_setOffsetClock() {
+ void setTickingClockFromInstant__when_instantProvided__should_setOffsetClock() throws InterruptedException {
// Arrange
MockedClock mockedClock = new MockedClock();
Instant futureInstant = Instant.now().plusSeconds(10);
// Act
mockedClock.setTickingClockFromInstant(futureInstant);
+ Thread.sleep(1);
- // Assert
- Instant now = Instant.now();
- assertThat(mockedClock.instant()).isBetween(now, futureInstant);
+ assertThat(mockedClock.instant()).isAfter(futureInstant);
}
}