Skip to content

Commit

Permalink
Force test Electron binary downloads to go to the old cache dir
Browse files Browse the repository at this point in the history
  • Loading branch information
malept committed Jun 5, 2017
1 parent 0066b1a commit 9bb1efb
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions test/util.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ const bufferEqual = require('buffer-equal')
const common = require('../common')
const config = require('./config.json')
const fs = require('fs-extra')
const os = require('os')
const path = require('path')
const pify = require('pify')
const test = require('tape')
Expand Down Expand Up @@ -56,6 +57,7 @@ exports.downloadAll = function downloadAll (version) {

return Promise.all(combinations.map(combination => {
return pify(common.downloadElectronZip)(Object.assign({}, combination, {
cache: path.join(os.homedir(), '.electron'),
quiet: !!process.env.CI,
version: version
}))
Expand Down

0 comments on commit 9bb1efb

Please sign in to comment.