Skip to content

Commit

Permalink
Merge pull request #109 from ohkinozomu/TestOnQosPublishThenQOSComplete
Browse files Browse the repository at this point in the history
Fix flaky TestOnQosPublishThenQOSComplete
  • Loading branch information
wind-c authored Aug 2, 2024
2 parents 633231b + 0183663 commit 65a405a
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 65a405a

Please sign in to comment.