From 690d2d6f95f932109b398bcb06d3e8723a294f1f Mon Sep 17 00:00:00 2001 From: Ingo Oppermann Date: Wed, 3 Dec 2025 16:17:48 +0100 Subject: [PATCH] Fix tests --- process/process_test.go | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/process/process_test.go b/process/process_test.go index d4ce18cc..bfcf841b 100644 --- a/process/process_test.go +++ b/process/process_test.go @@ -252,6 +252,8 @@ func TestFFmpegWaitStop(t *testing.T) { err = p.Start() require.NoError(t, err) + time.Sleep(time.Second) + require.Eventually(t, func() bool { return p.Status().State == "running" }, 10*time.Second, 500*time.Millisecond) @@ -280,6 +282,8 @@ func TestFFmpegKill(t *testing.T) { err = p.Start() require.NoError(t, err) + time.Sleep(time.Second) + require.Eventually(t, func() bool { return p.Status().State == "running" }, 10*time.Second, 500*time.Millisecond) @@ -306,6 +310,8 @@ func TestProcessForceKill(t *testing.T) { err = p.Start() require.NoError(t, err) + time.Sleep(time.Second) + require.Eventually(t, func() bool { return p.Status().State == "running" }, 10*time.Second, 500*time.Millisecond)