Skip to content

Commit

Permalink
end tests more forcefully
Browse files Browse the repository at this point in the history
  • Loading branch information
serprex committed Feb 29, 2024
1 parent 3f4f4fc commit bffc0a3
Showing 1 changed file with 8 additions and 5 deletions.
13 changes: 8 additions & 5 deletions flow/e2e/main_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -37,11 +37,14 @@ func TestMain(m *testing.M) {
exitcode := m.Run()
end <- os.Interrupt
close(end)
err := group.Wait()
go func() {
err := group.Wait()
if err != nil {
//nolint:forbidigo
fmt.Printf("%+v\n", err)
}
}()
time.Sleep(time.Second)
cancel()
if err != nil {
//nolint:forbidigo
fmt.Printf("%+v\n", err)
}
os.Exit(exitcode)
}

0 comments on commit bffc0a3

Please sign in to comment.