From 13bf35d6403ab32f4442161fb4b197f2ee348255 Mon Sep 17 00:00:00 2001 From: "Paul \"TBBle\" Hampson" Date: Tue, 28 Jul 2020 03:48:02 +1000 Subject: [PATCH] Run all the hasPrefix test-cases, even if one fails This makes it easier to see what's gone wrong if they start failing. Signed-off-by: Paul "TBBle" Hampson --- executor/oci/mounts_test.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/executor/oci/mounts_test.go b/executor/oci/mounts_test.go index 15b60f9fd..dae76e1ed 100644 --- a/executor/oci/mounts_test.go +++ b/executor/oci/mounts_test.go @@ -3,7 +3,7 @@ package oci import ( "testing" - "github.com/stretchr/testify/require" + "github.com/stretchr/testify/assert" ) func TestHasPrefix(t *testing.T) { @@ -51,6 +51,6 @@ func TestHasPrefix(t *testing.T) { } for i, tc := range testCases { actual := hasPrefix(tc.path, tc.prefix) - require.Equal(t, tc.expected, actual, "#%d: under(%q,%q)", i, tc.path, tc.prefix) + assert.Equal(t, tc.expected, actual, "#%d: under(%q,%q)", i, tc.path, tc.prefix) } }