mirror of
https://github.com/aljazceru/kata-containers.git
synced 2025-12-27 11:04:21 +01: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:
@@ -1759,7 +1759,10 @@ func TestStartNetworkMonitor(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()
|
||||
|
||||
assert.Nil(t, err)
|
||||
|
||||
Reference in New Issue
Block a user