Note that the test may suffer from issues caused by asynchronicity:
{{ws2}} [may be opened before|https://github.com/aerogear/aerogear-sync-server/blob/5cb26224608813a41789f7954e65d8ad5adf793d/js-client/tests/sync/diff-sync-client.js#L32] {{ws}} is and thus we send {{null}} content to the server first .
I was trying to fix it in [the branch|https://github.com/lfryc/aerogear-sync-server/tree/ensure-order-of-opening-websockets]. But even with the similar patch, the test passes/fails ocasionally.
|