Skip to content

Commit

Permalink
fixed final corrections
Browse files Browse the repository at this point in the history
  • Loading branch information
aali309 committed Aug 16, 2023
1 parent e6d1513 commit 3f6ccf5
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -154,10 +154,7 @@ public IRecordingDescriptor startRecording(
if (isRecordingStopped(previous.get())) {
connection.getService().close(previous.get());
} else {
// If recording exists and running, stop and close it before
// starting a
// new one
connection.getService().stop(previous.get());
// If recording exists & running, close it before starting new one
connection.getService().close(previous.get());
}
} else {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -558,7 +558,6 @@ void shouldStartRecordingAndArchiveOnStop() throws Exception {
IRecordingDescriptor descriptor = createDescriptor("someRecording");
Mockito.when(
recordingTargetHelper.startRecording(
// Mockito.anyBoolean(),
Mockito.any(),
Mockito.any(),
Mockito.any(),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -847,7 +847,7 @@ void shouldReplaceExistingRecording() throws Exception {
}

@Test
void shouldStopAndRecreateIfRecordingExistsAndIsRunning() throws Exception {
void shouldCloseAndRecreateIfRecordingExistsAndIsRunning() throws Exception {
String recordingName = "existingRecording";
String targetId = "fooTarget";
String duration = "5000ms";
Expand Down Expand Up @@ -901,7 +901,6 @@ void shouldStopAndRecreateIfRecordingExistsAndIsRunning() throws Exception {
metadata,
false);

Mockito.verify(service).stop(existingRecording);
Mockito.verify(service).close(existingRecording);
Mockito.verify(service).start(Mockito.any(), Mockito.any());
}
Expand Down

0 comments on commit 3f6ccf5

Please sign in to comment.