From 6f5ff8d1994c0c842a9f4a241b3c09044c6d993d Mon Sep 17 00:00:00 2001 From: Jack Guy Date: Wed, 11 May 2016 14:18:46 -0500 Subject: [PATCH] Think I fixed the race condition Another setTimeout should sufficiently space out the service calls that they both register individually in the rx subscriptions --- test/list.test.js | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/test/list.test.js b/test/list.test.js index 461e37b..da49d35 100644 --- a/test/list.test.js +++ b/test/list.test.js @@ -224,11 +224,13 @@ describe('reactive lists', () => { setTimeout(() => { service.create({ text: 'B test message' - }).then(() => - service.patch(0, { - text: 'Updated test message' - }) - ); + }).then(() => { + setTimeout(() => { + service.patch(0, { + text: 'Updated test message' + }) + }, 20); + }); }, 20); });