From 4ef36ab81ca0b9004150ac9ede617a1cf5f5b4b1 Mon Sep 17 00:00:00 2001 From: Kevin Jahns Date: Wed, 23 May 2018 14:16:54 +0200 Subject: [PATCH] fix tests --- test/y-map.tests.mjs | 4 ++++ tests-lib/test-connector.mjs | 4 ++-- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/test/y-map.tests.mjs b/test/y-map.tests.mjs index 0b955b3e..607b12da 100644 --- a/test/y-map.tests.mjs +++ b/test/y-map.tests.mjs @@ -103,6 +103,7 @@ test('Basic get&set of Map property (handle conflict)', async function map6 (t) map0.set('stuff', 'c0') map1.set('stuff', 'c1') + await flushAll(t, users) await flushAll(t, users) for (let user of users) { @@ -118,6 +119,7 @@ test('Basic get&set&delete of Map property (handle conflict)', async function ma map0.delete('stuff') map1.set('stuff', 'c1') await flushAll(t, users) + await flushAll(t, users) for (let user of users) { var u = user.get('map', Y.Map) t.assert(u.get('stuff') === undefined) @@ -132,6 +134,7 @@ test('Basic get&set of Map property (handle three conflicts)', async function ma map1.set('stuff', 'c2') map2.set('stuff', 'c3') await flushAll(t, users) + await flushAll(t, users) for (let user of users) { var u = user.get('map', Y.Map) t.compare(u.get('stuff'), 'c0') @@ -152,6 +155,7 @@ test('Basic get&set&delete of Map property (handle three conflicts)', async func map2.set('stuff', 'c2') map3.set('stuff', 'c3') await flushAll(t, users) + await flushAll(t, users) for (let user of users) { var u = user.get('map', Y.Map) t.assert(u.get('stuff') === undefined) diff --git a/tests-lib/test-connector.mjs b/tests-lib/test-connector.mjs index 923f4120..0d043961 100644 --- a/tests-lib/test-connector.mjs +++ b/tests-lib/test-connector.mjs @@ -1,5 +1,5 @@ -import { wait } from './helper' -import { messageToString } from '../src/MessageHandler/messageToString' +import { wait } from './helper.mjs' +import { messageToString } from '../src/MessageHandler/messageToString.mjs' import AbstractConnector from '../src/Connector.mjs' var rooms = {}