From 01836630538a363f9b653e447f5b986e54e054f6 Mon Sep 17 00:00:00 2001 From: ohkinozomu Date: Fri, 2 Aug 2024 07:47:03 +0900 Subject: [PATCH] Fix flaky TestOnQosPublishThenQOSComplete --- mqtt/hooks/storage/bolt/bolt_test.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mqtt/hooks/storage/bolt/bolt_test.go b/mqtt/hooks/storage/bolt/bolt_test.go index 4d7a8f7..e03b195 100644 --- a/mqtt/hooks/storage/bolt/bolt_test.go +++ b/mqtt/hooks/storage/bolt/bolt_test.go @@ -434,7 +434,7 @@ func TestOnQosPublishThenQOSComplete(t *testing.T) { // ensure dates are properly saved to bolt require.True(t, r.Sent > 0) - require.True(t, time.Now().Unix()-1 < r.Sent) + require.True(t, time.Now().Unix()-2 < r.Sent) // OnQosDropped is a passthrough to OnQosComplete here h.OnQosDropped(client, pk)