Skip to content

Commit

Permalink
tweak hang test
Browse files Browse the repository at this point in the history
  • Loading branch information
Danlock committed Nov 14, 2023
1 parent 17f5efe commit 7b76239
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion hang_int_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ func Example_hanging() {
}
chanDur := time.Since(chanStart)
// rmqConn is too paranoid to hang for 90% of hangTime, but double check anyway
if time.Since(chanStart) > (hangTime - (hangTime / 10)) {
if chanDur > (hangTime - (hangTime / 10)) {
log.Fatalf("rmqConn.Channel hung for (%s)", chanDur)
}
}

0 comments on commit 7b76239

Please sign in to comment.