We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 185c6ca commit 0ea4c7bCopy full SHA for 0ea4c7b
1 file changed
test/tests/remote.js
@@ -388,8 +388,15 @@ describe("Remote", function() {
388
// catches linux / osx failure to use anonymous credentials
389
// stops callback infinite loop
390
.catch(function (reason) {
391
- assert.equal(reason.message.replace(/\n|\r/g, ""),
392
- "failed to set credentials: The parameter is incorrect.");
+ const messageWithoutNewlines = reason.message.replace(/\n|\r/g, "");
+ const validErrors = [
393
+ "Method push has thrown an error",
394
+ "failed to set credentials: The parameter is incorrect."
395
+ ];
396
+ assert.ok(
397
+ validErrors.includes(messageWithoutNewlines),
398
+ "Unexpected error: " + reason.message
399
+ );
400
});
401
402
0 commit comments