Repository navigation
chore(deps): bump componentsjs from 5.1.0 to 5.20 - #1333
Conversation
|
@Falx some checks fail because of integration test errors related to the RedisLocker. I remember you said you had some issues with the CLI variables as well (related to what I'm fixing with this Components.js update), maybe you can have a look when there is some time? Thanks! |
|
It looks like an artificial multithreading test (with promises being mocked and released, that was not correctly configured, will look into it) |
ebb76b9 to
425fcc2
Compare
| setTimeout((): void => { | ||
| emitter.emit('release1'); | ||
| emitter.emit('release0'); | ||
| emitter.emit('release2'); | ||
| }, 200); |
There was a problem hiding this comment.
Since this is an integration test that has no timer mocking, this will always cause this part to take 200ms and makes our test dependent on the timer.
I'm thinking that perhaps instead we could have a solution where withReadLock triggers something when entered so we can force the order like that such as firing an event that is being listened to or calling a function.
There was a problem hiding this comment.
Ok, just force pushed an updated test without timer dependencies.
Edit: also fixed the test below that for simultaneous write locks.
15ce1ec to
5032e7c
Compare
📁 Related issues
#1182
✍️ Description
Fixes default CLI values being converted to strings, by updating the Components.js dependency to version 5.2.0 (which includes PR 95).
✅ PR check list
Before this pull request can be merged, a core maintainer will check whether