From 62eecaa75ef13b1416cabd0374cbf685e2f59c7e Mon Sep 17 00:00:00 2001 From: Nedyalko Dyakov Date: Wed, 29 Oct 2025 16:11:27 +0200 Subject: [PATCH] fix assertion --- internal/pool/conn_used_at_test.go | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/internal/pool/conn_used_at_test.go b/internal/pool/conn_used_at_test.go index 67976f6d..8461d6d1 100644 --- a/internal/pool/conn_used_at_test.go +++ b/internal/pool/conn_used_at_test.go @@ -90,8 +90,9 @@ func TestConn_UsedAtUpdatedOnWrite(t *testing.T) { // Verify the difference is reasonable (should be around 100ms, accounting for ~50ms cache precision) diff := updatedUsedAt.Sub(initialUsedAt) - if diff < 50*time.Millisecond || diff > 200*time.Millisecond { - t.Errorf("Expected usedAt difference to be around 100ms (±50ms for cache), got %v", diff) + + if diff > 100*time.Millisecond { + t.Errorf("Expected usedAt difference to be no more than 100ms (±50ms for cache), got %v", diff) } }