From d17e180420e67c11dbd6aa8dbe4a899b5099f053 Mon Sep 17 00:00:00 2001 From: ansuz Date: Wed, 5 Feb 2020 13:41:46 -0500 Subject: [PATCH] add a short delay in the rpc test to give the server time to write metadata to the disk before checking it --- scripts/tests/test-rpc.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/scripts/tests/test-rpc.js b/scripts/tests/test-rpc.js index 70ea13053..f655f7888 100644 --- a/scripts/tests/test-rpc.js +++ b/scripts/tests/test-rpc.js @@ -159,6 +159,9 @@ var createUser = function (config, cb) { } wc.leave(); })); + }).nThen(function (w) { + // give the server time to write your mailbox data before checking that it's correct + setTimeout(w(), 500); }).nThen(function (w) { // confirm that you own your mailbox user.anonRpc.send("GET_METADATA", user.mailboxChannel, w(function (err, data) {