diff --git a/hang_int_test.go b/hang_int_test.go index 39718fd..e2afbef 100644 --- a/hang_int_test.go +++ b/hang_int_test.go @@ -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) } }