mirror of
https://github.com/onyx-and-iris/gobs-cli.git
synced 2026-04-18 23:23:38 +00:00
record stop now prints output path of recording
record directory command added
This commit is contained in:
@@ -2,6 +2,7 @@ package main
|
||||
|
||||
import (
|
||||
"bytes"
|
||||
"strings"
|
||||
"testing"
|
||||
"time"
|
||||
)
|
||||
@@ -45,7 +46,7 @@ func TestRecordStartStatusStop(t *testing.T) {
|
||||
if err != nil {
|
||||
t.Fatalf("Failed to stop recording: %v", err)
|
||||
}
|
||||
if out.String() != "Recording stopped successfully.\n" {
|
||||
if !strings.Contains(out.String(), "Recording stopped successfully. Output file:") {
|
||||
t.Fatalf("Expected output to be 'Recording stopped successfully.', got '%s'", out.String())
|
||||
}
|
||||
// Reset output buffer for the next command
|
||||
|
||||
Reference in New Issue
Block a user