From 7b76239d431f632d801b4261b6935b545c743898 Mon Sep 17 00:00:00 2001 From: Danlock Date: Tue, 14 Nov 2023 11:06:12 -0500 Subject: [PATCH] tweak hang test --- hang_int_test.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) } }