Skip to content

Commit

Permalink
Update test
Browse files Browse the repository at this point in the history
  • Loading branch information
courtneyeh committed Apr 12, 2024
1 parent 33f63e2 commit 9945286
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ void saveGossipMessageDecodingError_shouldSaveToFile(@TempDir Path tempDir) {
manager.saveGossipMessageDecodingError("test_topic", arrivalTimestamp, messageBytes);

final String fileName =
String.format("%s.ssz", manager.formatOptionalTimestamp(arrivalTimestamp));
String.format("%s.ssz", manager.formatTimestamp(timeProvider.getTimeInMillis()));
final Path expectedFile =
tempDir
.resolve("gossip_messages")
Expand All @@ -70,7 +70,7 @@ void saveGossipMessageDecodingError_shouldNotSaveToFileWhenDisabled(@TempDir Pat
assertThat(manager.isEnabled()).isFalse();

final String fileName =
String.format("%s.ssz", manager.formatOptionalTimestamp(arrivalTimestamp));
String.format("%s.ssz", manager.formatTimestamp(timeProvider.getTimeInMillis()));
final Path expectedFile =
tempDir.resolve("gossip_messages").resolve("decoding_error").resolve(fileName);
checkFileNotExist(expectedFile);
Expand All @@ -85,7 +85,7 @@ void saveGossipRejectedMessageToFile_shouldSaveToFile(@TempDir Path tempDir) {
manager.saveGossipRejectedMessageToFile("test_topic", arrivalTimestamp, messageBytes);

final String fileName =
String.format("%s.ssz", manager.formatOptionalTimestamp(arrivalTimestamp));
String.format("%s.ssz", manager.formatTimestamp(timeProvider.getTimeInMillis()));
final Path expectedFile =
tempDir.resolve("gossip_messages").resolve("rejected").resolve(topic).resolve(fileName);
checkBytesSavedToFile(expectedFile, messageBytes);
Expand Down

0 comments on commit 9945286

Please sign in to comment.