mirror of
https://github.com/moby/buildkit.git
synced 2026-08-05 07:10:23 +00:00
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 <Paul.Hampson@Pobox.com>
This commit is contained in:
@@ -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)
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user