Skip to content

Commit

Permalink
Verify test dependencies can be found in vendor before symlinking (#516)
Browse files Browse the repository at this point in the history
See #515.
  • Loading branch information
prashantv committed Oct 23, 2017
1 parent 35aad58 commit fdad3eb
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion stacktrace_ext_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,10 @@ func TestStacktraceFiltersVendorZap(t *testing.T) {
// Set up symlinks for zap, and for any test dependencies.
setupSymlink(t, curDir, filepath.Join(vendorDir, "go.uber.org/zap"))
for _, testDep := range []string{"github.com/stretchr/testify"} {
setupSymlink(t, filepath.Join(curDir, "vendor", testDep), filepath.Join(vendorDir, testDep))
target := filepath.Join(curDir, "vendor", testDep)
_, err := os.Stat(target)
require.NoError(t, err, "Required dependency (%v) not installed in vendor", target)
setupSymlink(t, target, filepath.Join(vendorDir, testDep))
}

// Now run the above test which ensures we filter out zap stacktraces, but this time
Expand Down

0 comments on commit fdad3eb

Please sign in to comment.