Skip to content

Commit

Permalink
fix(tests): Fix race in tests
Browse files Browse the repository at this point in the history
The start time can be equal to the current time if your computer is just
fast enough.

Co-Authored-By: Torsten Will <[email protected]>
  • Loading branch information
Takuto88 and towi committed Nov 21, 2024
1 parent 3180b3b commit 3d950c8
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -412,6 +412,6 @@ private static void assertCommonFields(
assertThat(responseMessage.getVersion()).isEqualTo(VERSION);

final var timeinMillis = responseMessage.getMessageTimestamp().toGregorianCalendar().getTimeInMillis();
assertThat(timeinMillis).isGreaterThan(startTimeInMillis);
assertThat(timeinMillis).isGreaterThanOrEqualTo(startTimeInMillis);
}
}

0 comments on commit 3d950c8

Please sign in to comment.