mirror of
https://github.com/onyx-and-iris/gobs-cli.git
synced 2025-08-05 11:31:45 +00:00
add 500ms delays to tests
This commit is contained in:
parent
dbc26bf6ff
commit
1cf983a647
@ -5,6 +5,7 @@ import (
|
|||||||
"os"
|
"os"
|
||||||
"strings"
|
"strings"
|
||||||
"testing"
|
"testing"
|
||||||
|
"time"
|
||||||
)
|
)
|
||||||
|
|
||||||
func skipIfSkipReplayBufferTests(t *testing.T) {
|
func skipIfSkipReplayBufferTests(t *testing.T) {
|
||||||
@ -30,6 +31,7 @@ func TestReplayBufferStart(t *testing.T) {
|
|||||||
if out.String() != "Replay buffer started.\n" {
|
if out.String() != "Replay buffer started.\n" {
|
||||||
t.Fatalf("Expected output to be 'Replay buffer started', got '%s'", out.String())
|
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) {
|
func TestReplayBufferStop(t *testing.T) {
|
||||||
@ -49,6 +51,7 @@ func TestReplayBufferStop(t *testing.T) {
|
|||||||
if out.String() != "Replay buffer stopped.\n" {
|
if out.String() != "Replay buffer stopped.\n" {
|
||||||
t.Fatalf("Expected output to be 'Replay buffer stopped.', got '%s'", out.String())
|
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) {
|
func TestReplayBufferToggle(t *testing.T) {
|
||||||
@ -86,4 +89,5 @@ func TestReplayBufferToggle(t *testing.T) {
|
|||||||
t.Fatalf("Expected output to be 'Replay buffer started.', got '%s'", out.String())
|
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
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user