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
looks like it's a race condition, on one level instance, if you do createLiveStream and then put the puts will be in the live-stream, even if created in the same tick.
if the rpc message does not get there within the tick, then it might have a problem.
normally I like to make stream tests work synchronously, so that it's possible to be exact about the timing.
I suspect this is about that, although this seems like it should work...
to test, you could wrap the (server) level in loggers so you can see the exact order that the createLiveStream and put are being called.
Without https://github.com/juliangruber/multilevel/blob/master/test/live-stream.js#L29 the tests go crazy, with it we're making sure the live-stream is only created after all data has been written and the db connection is up.
I'm not sure if this is a bug with level-live-stream or multilevel or one of it's deps, but it's worth investigating.
The text was updated successfully, but these errors were encountered: