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
This is more a question. I would like to know if there's any way to reset the stats of a CircuitBreaker instance. I have test cases that are interfering with each other since they are testing job retries. I'd like to reset the CircuitBreaker stats in a beforeEach callback 😄 .
The text was updated successfully, but these errors were encountered:
test('has a name based on the function name', t => {
const breaker = new CircuitBreaker(passFail);
t.equals(breaker.name, passFail.name);
breaker.shutdown();
t.end();
});
@lholmquist I can make that workaround. Not ideal because the CircuitBreaker is created in source code and not in test code. But a feature request to add the reset method would be much appreciated. Thank you!
Node.js Version: 18.13.0
Operating System: MacOS Ventura 13.2.1
Steps to Produce Error:
This is more a question. I would like to know if there's any way to reset the stats of a CircuitBreaker instance. I have test cases that are interfering with each other since they are testing job retries. I'd like to reset the CircuitBreaker stats in a
beforeEach
callback 😄 .The text was updated successfully, but these errors were encountered: