From 91c2f479bb078a7f2d62b9df012789a6f43b0954 Mon Sep 17 00:00:00 2001 From: Nick O'Leary Date: Fri, 25 Sep 2020 18:29:47 +0100 Subject: [PATCH] Fix settings file migration test --- .../runtime/lib/storage/localfilesystem/settings_spec.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/test/unit/@node-red/runtime/lib/storage/localfilesystem/settings_spec.js b/test/unit/@node-red/runtime/lib/storage/localfilesystem/settings_spec.js index 87a0a95b6..bd07ca27f 100644 --- a/test/unit/@node-red/runtime/lib/storage/localfilesystem/settings_spec.js +++ b/test/unit/@node-red/runtime/lib/storage/localfilesystem/settings_spec.js @@ -62,7 +62,8 @@ describe('storage/localfilesystem/settings', function() { } localfilesystemSettings.init({userDir:userDir}).then(async function() { - fs.existsSync(settingsFile).should.be.false(); + // (For now) leave the old settings file in place + fs.existsSync(settingsFile).should.be.true(); await checkFile("nodes",{a:1}) await checkFile("users",{b:2}) await checkFile("projects",{c:3})