Skip to content

Commit

Permalink
Fix flaky TestOnQosPublishThenQOSComplete
Browse files Browse the repository at this point in the history
  • Loading branch information
ohkinozomu committed Aug 1, 2024
1 parent 633231b commit 0183663
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mqtt/hooks/storage/bolt/bolt_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 0183663

Please sign in to comment.