mirror of
https://github.com/kata-containers/kata-containers.git
synced 2025-07-04 19:16:23 +00:00
virtcontainers: Reduce sandbox test noise
We need to set the sandbox context before calling into its API. Fixes: #1211 Signed-off-by: Samuel Ortiz <sameo@linux.intel.com>
This commit is contained in:
parent
799ac6edf6
commit
e402601cf8
@ -1759,7 +1759,10 @@ func TestStartNetworkMonitor(t *testing.T) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
func TestSandboxStopStopped(t *testing.T) {
|
func TestSandboxStopStopped(t *testing.T) {
|
||||||
s := &Sandbox{state: types.State{State: types.StateStopped}}
|
s := &Sandbox{
|
||||||
|
ctx: context.Background(),
|
||||||
|
state: types.State{State: types.StateStopped},
|
||||||
|
}
|
||||||
err := s.Stop()
|
err := s.Stop()
|
||||||
|
|
||||||
assert.Nil(t, err)
|
assert.Nil(t, err)
|
||||||
|
Loading…
Reference in New Issue
Block a user