Wait for the container
Some checks failed
continuous-integration/drone/push Build is failing

This commit is contained in:
Adam Štrauch 2022-02-06 01:40:04 +01:00
parent e50e139f60
commit 1fb659b1e6
Signed by: cx
GPG key ID: 018304FFA8988F8D

View file

@ -2,6 +2,7 @@ package containers
import (
"testing"
"time"
"github.com/stretchr/testify/assert"
)
@ -22,6 +23,8 @@ func TestGetProcesses(t *testing.T) {
err = driver.Start("test")
assert.Nil(t, err)
time.Sleep(5 * time.Second)
processes, err := driver.GetProcesses("test")
assert.Nil(t, err)
assert.Contains(t, processes, "sleep 3600")