Fix tests

This commit is contained in:
Ingo Oppermann 2025-12-03 16:17:48 +01:00
parent 6cfb470d98
commit 690d2d6f95
No known key found for this signature in database
GPG Key ID: 2AB32426E9DD229E

View File

@ -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)