This commit is contained in:
parent
e50e139f60
commit
1fb659b1e6
@ -2,6 +2,7 @@ package containers
|
|||||||
|
|
||||||
import (
|
import (
|
||||||
"testing"
|
"testing"
|
||||||
|
"time"
|
||||||
|
|
||||||
"github.com/stretchr/testify/assert"
|
"github.com/stretchr/testify/assert"
|
||||||
)
|
)
|
||||||
@ -22,6 +23,8 @@ func TestGetProcesses(t *testing.T) {
|
|||||||
err = driver.Start("test")
|
err = driver.Start("test")
|
||||||
assert.Nil(t, err)
|
assert.Nil(t, err)
|
||||||
|
|
||||||
|
time.Sleep(5 * time.Second)
|
||||||
|
|
||||||
processes, err := driver.GetProcesses("test")
|
processes, err := driver.GetProcesses("test")
|
||||||
assert.Nil(t, err)
|
assert.Nil(t, err)
|
||||||
assert.Contains(t, processes, "sleep 3600")
|
assert.Contains(t, processes, "sleep 3600")
|
||||||
|
Loading…
Reference in New Issue
Block a user