You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Fixes#61
### Motivation
`testDestructor` is flaky because the destructor might not be called
immediately after the `shared_ptr` object goes out of the scope. It's
similar like the flaky `testReferenceCount` before in
apache/pulsar#17645.
### Modifications
Add back `WaitUtils.h`, which was removed in #55, add use `waitUntil` to
wait until the assertion.
### Verifications
Run the reproduce script in #61. Even if the loop count was increased to
100, it still never failed.
0 commit comments