Skip to content

Commit dcebe44

Browse files
committed
dont swallow error in remote tests
1 parent 37b3b90 commit dcebe44

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

test/tests/remote.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -203,8 +203,7 @@ describe("Remote", function() {
203203
new Error("should not be able to push to the repository"));
204204
}, function(err) {
205205
if (err.message.indexOf(401) === -1) {
206-
return Promise.reject(
207-
new Error("failed to return unauthorized status code"));
206+
throw err;
208207
} else {
209208
return Promise.resolve();
210209
}

0 commit comments

Comments
 (0)