From fc7b9f1231bfff82d7316106362ec0c8fcef7cfe Mon Sep 17 00:00:00 2001 From: jsteemann Date: Fri, 28 Sep 2018 18:08:06 +0200 Subject: [PATCH] try to make test more deterministic --- tests/js/server/recovery/write-throttling-mmfiles.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/js/server/recovery/write-throttling-mmfiles.js b/tests/js/server/recovery/write-throttling-mmfiles.js index 8f1645c1fc..d536e48641 100644 --- a/tests/js/server/recovery/write-throttling-mmfiles.js +++ b/tests/js/server/recovery/write-throttling-mmfiles.js @@ -40,11 +40,11 @@ function runSetup () { internal.wal.flush(true, true); internal.wal.properties({ throttleWait: 1000, throttleWhenPending: 1000 }); + internal.debugSetFailAt('CollectorThreadProcessQueuedOperations'); for (i = 0; i < 10000; ++i) { c.save({ _key: 'test' + i, value1: 'test' + i, value2: i }); } - - internal.debugSetFailAt('CollectorThreadProcessQueuedOperations'); + internal.wal.flush(true, false); // now let the write throttling become active