From 0f75c0c81187ffbeb6e884b254d4b915cc25b2cb Mon Sep 17 00:00:00 2001 From: rafapaezbas <15270736+rafapaezbas@users.noreply.github.com> Date: Tue, 3 Dec 2024 08:35:08 +0100 Subject: [PATCH] removed uneeded preferences setup in update tests (#471) --- test/05-updates.test.js | 12 ------------ 1 file changed, 12 deletions(-) diff --git a/test/05-updates.test.js b/test/05-updates.test.js index facfed17e..26ac8d767 100644 --- a/test/05-updates.test.js +++ b/test/05-updates.test.js @@ -194,9 +194,6 @@ test('Pear.updates should notify Platform stage updates (different pear instance comment('bootstrapping rcv platform...') const platformDirRcv = path.join(tmp, 'rcv-pear') await Helper.bootstrap(rig.key, platformDirRcv) - const prefs = 'preferences.json' - fs.writeFileSync(path.join(platformDirRcv, prefs), JSON.stringify({ trusted: [appKey] })) - teardown(() => { fs.unlinkSync(path.join(platformDirRcv, prefs)) }, { order: -Infinity }) comment('rcv platform bootstrapped') comment('running app from rcv platform') @@ -263,9 +260,6 @@ test('Pear.updates should notify Platform stage, Platform release updates (diffe comment('bootstrapping rcv platform...') const platformDirRcv = path.join(tmp, 'rcv-pear') await Helper.bootstrap(rig.key, platformDirRcv) - const prefs = 'preferences.json' - fs.writeFileSync(path.join(platformDirRcv, prefs), JSON.stringify({ trusted: [appKey] })) - teardown(() => { fs.unlinkSync(path.join(platformDirRcv, prefs)) }, { order: -Infinity }) comment('rcv platform bootstrapped') comment('running app from rcv platform') @@ -345,9 +339,6 @@ test('Pear.updates should notify App stage updates (different pear instances)', comment('bootstrapping rcv platform...') const platformDirRcv = path.join(tmp, 'rcv-pear') await Helper.bootstrap(rig.key, platformDirRcv) - const prefs = 'preferences.json' - fs.writeFileSync(path.join(platformDirRcv, prefs), JSON.stringify({ trusted: [appKey] })) - teardown(() => { fs.unlinkSync(path.join(platformDirRcv, prefs)) }, { order: -Infinity }) comment('rcv platform bootstrapped') comment('running app from rcv platform') @@ -416,9 +407,6 @@ test('Pear.updates should notify App stage, App release updates (different pear comment('bootstrapping rcv platform...') const platformDirRcv = path.join(tmp, 'rcv-pear') await Helper.bootstrap(rig.key, platformDirRcv) - const prefs = 'preferences.json' - fs.writeFileSync(path.join(platformDirRcv, prefs), JSON.stringify({ trusted: [appKey] })) - teardown(() => { fs.unlinkSync(path.join(platformDirRcv, prefs)) }, { order: -Infinity }) comment('rcv platform bootstrapped') comment('running app from rcv platform')