summaryrefslogtreecommitdiff
path: root/libpod
diff options
context:
space:
mode:
Diffstat (limited to 'libpod')
-rw-r--r--libpod/common_test.go5
1 files changed, 3 insertions, 2 deletions
diff --git a/libpod/common_test.go b/libpod/common_test.go
index d2379c508..543242130 100644
--- a/libpod/common_test.go
+++ b/libpod/common_test.go
@@ -12,6 +12,7 @@ import (
"github.com/cri-o/ocicni/pkg/ocicni"
"github.com/opencontainers/runtime-tools/generate"
"github.com/stretchr/testify/assert"
+ "github.com/stretchr/testify/require"
)
func getTestContainer(id, name, locksDir string) (*Container, error) {
@@ -148,8 +149,8 @@ func testContainersEqual(t *testing.T, a, b *Container) {
if a == nil && b == nil {
return
}
- assert.NotNil(t, a)
- assert.NotNil(t, b)
+ require.NotNil(t, a)
+ require.NotNil(t, b)
assert.NotNil(t, a.config)
assert.NotNil(t, b.config)