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
thanks for your great job. I just tried to clean all event counter but it seems does not work. I wrote some code to reproduce this issue hope it helps.
zero specified event(zero({eventObj: '123456'}) in my case) works perfectly
"redis-metrics": "^2.0.0"
...
consthitCounter=metrics.counter('anchorQueryHit',{timeGranularity: 'day'});
...
describe.only('#zero',()=>{it('should clean all',function(done){hitCounter.incr({eventObj:'123456'}).then((data)=>{returnhitCounter.count({eventObj: '123456'})}).then(count=>{// count.should.equal(1);returnhitCounter.zero();// <--- expect all counter cleaned, include '123456's}).then(()=>{returnhitCounter.count({eventObj: '123456'});}).then(count=>{count.should.equal(0);// <--- no, it does notdone();}).catch(done)})})
The text was updated successfully, but these errors were encountered:
Hi,
thanks for your great job. I just tried to clean all event counter but it seems does not work. I wrote some code to reproduce this issue hope it helps.
zero specified event(
zero({eventObj: '123456'})
in my case) works perfectlyThe text was updated successfully, but these errors were encountered: