Fix some assertions for integ tests
Signed-off-by: Henry Wang <henwang@amazon.com>
This commit is contained in:
@@ -67,7 +67,7 @@ func TestSharedPidMultiProcessContainerStop(t *testing.T) {
|
||||
t.Log("The container state should be exited")
|
||||
s, err := runtimeService.ContainerStatus(cn)
|
||||
require.NoError(t, err)
|
||||
assert.Equal(t, s.GetState(), runtime.ContainerState_CONTAINER_EXITED)
|
||||
assert.Equal(t, runtime.ContainerState_CONTAINER_EXITED, s.GetState())
|
||||
})
|
||||
}
|
||||
}
|
||||
@@ -126,5 +126,5 @@ func TestContainerStopCancellation(t *testing.T) {
|
||||
t.Log("The container state should be exited")
|
||||
s, err := runtimeService.ContainerStatus(cn)
|
||||
require.NoError(t, err)
|
||||
assert.Equal(t, s.GetState(), runtime.ContainerState_CONTAINER_EXITED)
|
||||
assert.Equal(t, runtime.ContainerState_CONTAINER_EXITED, s.GetState())
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user