diff --git a/docker_helpers_test.go b/docker_helpers_test.go index 9ac8cff..357278c 100644 --- a/docker_helpers_test.go +++ b/docker_helpers_test.go @@ -255,6 +255,9 @@ func doTest(t *testing.T, file string, config *Config) *testStore { p := path.Join("fixtures", file) f, err := os.Open(p) assert.NoError(t, err) + if err != nil { + t.FailNow() + } b, err := io.ReadAll(f) assert.NoError(t, err) diff --git a/docker_test.go b/docker_test.go index 4ef76f8..f6806ce 100644 --- a/docker_test.go +++ b/docker_test.go @@ -135,7 +135,7 @@ func Test_helloWorldIgnore(t *testing.T) { } func Test_samePrefix(t *testing.T) { - store := doTest(t, "prefix.yml") + store := doTest(t, "prefix.yml", nil) // Two services `hello` and `hello-test`. // The former's name is a prefix of the latter. Ensure the matching does not mix them up.