Skip to content

Commit

Permalink
Use test clock as timestamps
Browse files Browse the repository at this point in the history
  • Loading branch information
passsy committed Nov 4, 2024
1 parent cfc14af commit 1cde9c4
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/src/timeline/timeline.dart
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
// ignore_for_file: depend_on_referenced_packages

import 'package:clock/clock.dart';
import 'package:collection/collection.dart';
import 'package:flutter_test/flutter_test.dart';
import 'package:spot/src/screenshot/screenshot.dart';
Expand Down Expand Up @@ -134,7 +135,7 @@ class Timeline {
initiator: mostRelevantCaller(
fallback: initiator ?? screenshot?.initiator,
),
timestamp: DateTime.now(),
timestamp: clock.now(),
treeSnapshot: currentWidgetTreeSnapshot(),
eventType: TimelineEventType(label: eventType),
);
Expand Down

0 comments on commit 1cde9c4

Please sign in to comment.