Align lint checks with containerd
Signed-off-by: Derek McGowan <derek@mcg.dev>
This commit is contained in:
@@ -70,15 +70,14 @@ func TestPodHostname(t *testing.T) {
|
||||
t.Fatalf("Unexpected RunPodSandbox error: %v", err)
|
||||
}
|
||||
return
|
||||
} else {
|
||||
// Make sure the sandbox is cleaned up.
|
||||
defer func() {
|
||||
assert.NoError(t, runtimeService.StopPodSandbox(sb))
|
||||
assert.NoError(t, runtimeService.RemovePodSandbox(sb))
|
||||
}()
|
||||
if test.expectErr {
|
||||
t.Fatalf("Expected RunPodSandbox to return error")
|
||||
}
|
||||
}
|
||||
// Make sure the sandbox is cleaned up.
|
||||
defer func() {
|
||||
assert.NoError(t, runtimeService.StopPodSandbox(sb))
|
||||
assert.NoError(t, runtimeService.RemovePodSandbox(sb))
|
||||
}()
|
||||
if test.expectErr {
|
||||
t.Fatalf("Expected RunPodSandbox to return error")
|
||||
}
|
||||
|
||||
const (
|
||||
|
Reference in New Issue
Block a user