Skip to content
This repository has been archived by the owner on Oct 4, 2023. It is now read-only.

Commit

Permalink
fix install tests by forcing sudo for install or remove operations
Browse files Browse the repository at this point in the history
  • Loading branch information
David Barth committed Feb 6, 2017
1 parent 2ed9821 commit b00780b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/utils/snap-cmd-util.js
Original file line number Diff line number Diff line change
Expand Up @@ -103,11 +103,11 @@ SnapUtil.prototype.getToken = function() {
}

SnapUtil.prototype.installSnap = function(name) {
return this._promisifyExec('snap install ' + name, this.isSudoRequired);
return this._promisifyExec('snap install ' + name, true);
}

SnapUtil.prototype.removeSnap = function(name) {
return this._promisifyExec('snap remove ' + name, this.isSudoRequired);
return this._promisifyExec('snap remove ' + name, true);
}

SnapUtil.prototype.snapVersion = function() {
Expand Down

0 comments on commit b00780b

Please sign in to comment.