Skip to content

Commit

Permalink
Streamline error handling in the test
Browse files Browse the repository at this point in the history
  • Loading branch information
Zebradil committed Jan 5, 2024
1 parent f461839 commit 129eb30
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions test/e2e/concurrent_processes_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -41,14 +41,13 @@ directories:
wg.Add(1)
go func(n int, t *testing.T, wg *sync.WaitGroup) {
defer wg.Done()
_, err := vendir.RunWithOpts(
// RunWithOpts invokes t.Fatal on error
vendir.RunWithOpts(
[]string{"sync", "-f", "-"},
RunOpts{
Dir: tmpRoot,
StdinReader: strings.NewReader(fmt.Sprintf(yaml, n)),
AllowError: true,
})
require.NoError(t, err)
}(i, t, &wg)
}
wg.Wait()
Expand Down

0 comments on commit 129eb30

Please sign in to comment.