Skip to content

Commit

Permalink
removed uneeded preferences setup in update tests (#471)
Browse files Browse the repository at this point in the history
  • Loading branch information
rafapaezbas authored Dec 3, 2024
1 parent 1f8c0ef commit 0f75c0c
Showing 1 changed file with 0 additions and 12 deletions.
12 changes: 0 additions & 12 deletions test/05-updates.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -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')
Expand Down Expand Up @@ -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')
Expand Down Expand Up @@ -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')
Expand Down Expand Up @@ -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')
Expand Down

0 comments on commit 0f75c0c

Please sign in to comment.