Skip to content

Commit

Permalink
test: add new arg
Browse files Browse the repository at this point in the history
  • Loading branch information
chetan committed Jul 10, 2024
1 parent 58ba8d7 commit b40853c
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 3 additions & 0 deletions docker_helpers_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
2 changes: 1 addition & 1 deletion docker_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down

0 comments on commit b40853c

Please sign in to comment.