Skip to content

Commit

Permalink
Fix activity log unit test
Browse files Browse the repository at this point in the history
  • Loading branch information
lucko committed Sep 25, 2024
1 parent 7f32289 commit 72880dd
Showing 1 changed file with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -36,9 +36,11 @@ public class ActivityLogTest {

@Test
public void testSaveLoad(@TempDir Path tempDir) {
long time = System.currentTimeMillis();

ActivityLog log = new ActivityLog(tempDir.resolve("activity-log.json"));
log.addToLog(Activity.fileActivity(USER, 1721937782184L, "Profiler", "path/to/profile.sparkprofile"));
log.addToLog(Activity.urlActivity(USER, 1721937782184L, "Profiler", "https://spark.lucko.me/abcd"));
log.addToLog(Activity.fileActivity(USER, time, "Profiler", "path/to/profile.sparkprofile"));
log.addToLog(Activity.urlActivity(USER, time, "Profiler", "https://spark.lucko.me/abcd"));
log.save();

ActivityLog log2 = new ActivityLog(tempDir.resolve("activity-log.json"));
Expand Down

0 comments on commit 72880dd

Please sign in to comment.