From b40853c0a1761180c455a9234e6bcb3001a8d4a9 Mon Sep 17 00:00:00 2001 From: Chetan Sarva Date: Wed, 10 Jul 2024 10:33:53 -0400 Subject: [PATCH] test: add new arg --- docker_helpers_test.go | 3 +++ docker_test.go | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) 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.