mirror of
https://github.com/onyx-and-iris/gobs-cli.git
synced 2025-08-06 03:51:45 +00:00
Compare commits
No commits in common. "1cf983a6479ccef4a440476ee4b8f55e38812284" and "101c7552b2374bd556c6781ef63ce76c5c13a64d" have entirely different histories.
1cf983a647
...
101c7552b2
@ -44,7 +44,7 @@ func TestRecordStart(t *testing.T) {
|
||||
if out.String() != "Recording started successfully.\n" {
|
||||
t.Fatalf("Expected output to contain 'Recording started successfully.', got '%s'", out.String())
|
||||
}
|
||||
time.Sleep(500 * time.Millisecond) // Wait for the recording to start
|
||||
time.Sleep(1 * time.Second) // Wait for the recording to start
|
||||
}
|
||||
|
||||
func TestRecordStop(t *testing.T) {
|
||||
@ -84,7 +84,7 @@ func TestRecordStop(t *testing.T) {
|
||||
if !strings.Contains(out.String(), "Recording stopped successfully. Output file: ") {
|
||||
t.Fatalf("Expected output to contain 'Recording stopped successfully. Output file: ', got '%s'", out.String())
|
||||
}
|
||||
time.Sleep(500 * time.Millisecond) // Wait for the recording to stop
|
||||
time.Sleep(1 * time.Second) // Wait for the recording to stop
|
||||
}
|
||||
|
||||
func TestRecordToggle(t *testing.T) {
|
||||
@ -112,6 +112,8 @@ func TestRecordToggle(t *testing.T) {
|
||||
t.Fatalf("Failed to toggle recording: %v", err)
|
||||
}
|
||||
|
||||
time.Sleep(1 * time.Second) // Wait for a second to ensure toggle has taken effect
|
||||
|
||||
if active {
|
||||
if out.String() != "Recording stopped successfully.\n" {
|
||||
t.Fatalf("Expected output to be 'Recording stopped successfully.', got '%s'", out.String())
|
||||
@ -121,5 +123,4 @@ func TestRecordToggle(t *testing.T) {
|
||||
t.Fatalf("Expected output to be 'Recording started successfully.', got '%s'", out.String())
|
||||
}
|
||||
}
|
||||
time.Sleep(500 * time.Millisecond) // Wait for the toggle to take effect
|
||||
}
|
||||
|
@ -5,7 +5,6 @@ import (
|
||||
"os"
|
||||
"strings"
|
||||
"testing"
|
||||
"time"
|
||||
)
|
||||
|
||||
func skipIfSkipReplayBufferTests(t *testing.T) {
|
||||
@ -31,7 +30,6 @@ func TestReplayBufferStart(t *testing.T) {
|
||||
if out.String() != "Replay buffer started.\n" {
|
||||
t.Fatalf("Expected output to be 'Replay buffer started', got '%s'", out.String())
|
||||
}
|
||||
time.Sleep(500 * time.Millisecond) // Wait for the replay buffer to start
|
||||
}
|
||||
|
||||
func TestReplayBufferStop(t *testing.T) {
|
||||
@ -51,7 +49,6 @@ func TestReplayBufferStop(t *testing.T) {
|
||||
if out.String() != "Replay buffer stopped.\n" {
|
||||
t.Fatalf("Expected output to be 'Replay buffer stopped.', got '%s'", out.String())
|
||||
}
|
||||
time.Sleep(500 * time.Millisecond) // Wait for the replay buffer to stop
|
||||
}
|
||||
|
||||
func TestReplayBufferToggle(t *testing.T) {
|
||||
@ -89,5 +86,4 @@ func TestReplayBufferToggle(t *testing.T) {
|
||||
t.Fatalf("Expected output to be 'Replay buffer started.', got '%s'", out.String())
|
||||
}
|
||||
}
|
||||
time.Sleep(500 * time.Millisecond) // Wait for the toggle to take effect
|
||||
}
|
||||
|
@ -43,7 +43,7 @@ func TestStreamStart(t *testing.T) {
|
||||
if out.String() != "Stream started successfully.\n" {
|
||||
t.Fatalf("Expected output to contain 'Stream started successfully.', got '%s'", out.String())
|
||||
}
|
||||
time.Sleep(500 * time.Millisecond) // Wait for the stream to start
|
||||
time.Sleep(2 * time.Second) // Wait for the stream to start
|
||||
}
|
||||
|
||||
func TestStreamStop(t *testing.T) {
|
||||
@ -82,7 +82,7 @@ func TestStreamStop(t *testing.T) {
|
||||
if out.String() != "Stream stopped successfully.\n" {
|
||||
t.Fatalf("Expected output to contain 'Stream stopped successfully.', got '%s'", out.String())
|
||||
}
|
||||
time.Sleep(500 * time.Millisecond) // Wait for the stream to stop
|
||||
time.Sleep(2 * time.Second) // Wait for the stream to stop
|
||||
}
|
||||
|
||||
func TestStreamToggle(t *testing.T) {
|
||||
@ -119,5 +119,5 @@ func TestStreamToggle(t *testing.T) {
|
||||
t.Fatalf("Expected 'Stream started successfully.', got: %s", out.String())
|
||||
}
|
||||
}
|
||||
time.Sleep(500 * time.Millisecond) // Wait for the stream to toggle
|
||||
time.Sleep(2 * time.Second) // Wait for the stream to toggle
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user