Best way to test queue durability? #1460
Answered
by
johnnyleejy
johnnyleejy
asked this question in
Q&A
-
I'm currently trying to test a queue's durability and my test case involves restarting the queue to ensure messages are not lost. What's the best way to test bullmq's durability for this test case. I tried to disconnect a queue but there doesn't seem to be any method allowing me to restart me queue or worker again. Thank you :) |
Beta Was this translation helpful? Give feedback.
Answered by
johnnyleejy
Oct 5, 2022
Replies: 1 comment 1 reply
-
Here's what I did. I created listeners to listen if the redisclient did disconnect and reconnect. Then I returned promises and expect a true value in my tests.
|
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
johnnyleejy
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Here's what I did.
I created listeners to listen if the redisclient did disconnect and reconnect.
Then I returned promises and expect a true value in my tests.