Skip to content
Open
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion invoices/test_utils_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -255,7 +255,9 @@ func timeout() func() {

go func() {
select {
case <-time.After(10 * time.Second):
// Use a longer timeout to accommodate slow Postgres database
// setup and migrations when running tests in parallel.
case <-time.After(60 * time.Second):
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nit: use named constant

err := pprof.Lookup("goroutine").WriteTo(os.Stdout, 1)
if err != nil {
panic(fmt.Sprintf("error writing to std out "+
Expand Down