Skip to content

Commit

Permalink
fixup! Wait before checking target
Browse files Browse the repository at this point in the history
  • Loading branch information
Janelle Law committed Feb 4, 2022
1 parent 7dc17a0 commit cfe085b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ public class RecordingTargetHelper {

private static final String CREATE_NOTIFICATION_CATEGORY = "RecordingCreated";
private static final String STOP_NOTIFICATION_CATEGORY = "RecordingStopped";
private final long TIMESTAMP_DRIFT_SAFEGUARD = 3_000L;
private static final long TIMESTAMP_DRIFT_SAFEGUARD = 3_000L;

private static final Pattern TEMPLATE_PATTERN =
Pattern.compile("^template=([\\w]+)(?:,type=([\\w]+))?$");
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -492,7 +492,7 @@ public Object answer(InvocationOnMock invocation) throws Throwable {
Mockito.verify(scheduler)
.schedule(
scheduledStoppedNotificationCaptor.capture(),
Mockito.eq(3_000L+TIMESTAMP_DRIFT_SAFEGUARD),
Mockito.eq(3_000L + TIMESTAMP_DRIFT_SAFEGUARD),
Mockito.eq(TimeUnit.MILLISECONDS));
scheduledStoppedNotificationCaptor.getValue().call();

Expand Down

0 comments on commit cfe085b

Please sign in to comment.