Skip to content

Commit 1aff63f

Browse files
committed
Use timeprovider in test
1 parent 326f496 commit 1aff63f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Diff for: ethereum/statetransition/src/test/java/tech/pegasys/teku/statetransition/util/DebugDataDumperTest.java

+2-2
Original file line numberDiff line numberDiff line change
@@ -158,8 +158,8 @@ void constructionOfDirectories_shouldDisableWhenFailedToCreate(@TempDir Path tem
158158
@Test
159159
void formatTimestamp_shouldFormatDate() {
160160
final String formattedTimestamp =
161-
DebugDataDumper.formatTimestamp(Optional.of(dataStructureUtil.randomUInt64()));
162-
assertThat(formattedTimestamp).isEqualTo("147882977-02-28T19:22:42.956");
161+
DebugDataDumper.formatTimestamp(Optional.of(timeProvider.getTimeInMillis()));
162+
assertThat(formattedTimestamp).isEqualTo("1970-01-01T12:46:40.00");
163163
}
164164

165165
@Test

0 commit comments

Comments
 (0)