Skip to content

Commit

Permalink
test(testutil): fix tests when run with -count=2 (#280)
Browse files Browse the repository at this point in the history
  • Loading branch information
benhoyt authored Aug 18, 2023
1 parent 1a66abb commit 03e42a6
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions internals/testutil/exec_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,8 @@ func (s *fakeCommandSuite) TestFakeCommandConflictEcho(c *check.C) {
}

func (s *fakeCommandSuite) TestFakeShellchecksWhenAvailable(c *check.C) {
shellchecked = make(map[string]bool) // reset checked cache

tmpDir := c.MkDir()
fakeShellcheck := FakeCommand(c, "shellcheck", fmt.Sprintf(`cat > %s/input`, tmpDir), false)
defer fakeShellcheck.Restore()
Expand Down

0 comments on commit 03e42a6

Please sign in to comment.