Skip to content

Commit

Permalink
Merge pull request snyk#113 from cmars/fix/tempdir-dependent-test-fai…
Browse files Browse the repository at this point in the history
…lure

fix: tmpdir-dependent test failure
  • Loading branch information
cmars authored Jan 4, 2022
2 parents 8f131b7 + 4449383 commit c8f1b4d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion internal/linter/optic/linter_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -196,7 +196,7 @@ func TestGitScript(t *testing.T) {
c.Assert(err, qt.IsNil)
c.Assert(runner.runs, qt.HasLen, 1)
c.Assert(strings.Join(runner.runs[0], " "), qt.Matches,
`/usr/local/lib/node_modules/.bin/sweater-comb bulk-compare --input /tmp/.*-input.json`)
`/usr/local/lib/node_modules/.bin/sweater-comb bulk-compare --input `+filepath.Clean(os.TempDir())+`.*-input.json`)

// Command failed.
runner = &mockRunner{err: fmt.Errorf("bad wolf")}
Expand Down

0 comments on commit c8f1b4d

Please sign in to comment.