This commit is contained in:
parent
e50e139f60
commit
1fb659b1e6
1 changed files with 3 additions and 0 deletions
|
@ -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")
|
||||
|
|
Loading…
Reference in a new issue