aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/node/test/credentials_test.js
diff options
context:
space:
mode:
Diffstat (limited to 'src/node/test/credentials_test.js')
-rw-r--r--src/node/test/credentials_test.js5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/node/test/credentials_test.js b/src/node/test/credentials_test.js
index 0a21572582..305843f665 100644
--- a/src/node/test/credentials_test.js
+++ b/src/node/test/credentials_test.js
@@ -71,7 +71,10 @@ var fakeSuccessfulGoogleCredentials = {
var fakeFailingGoogleCredentials = {
getRequestMetadata: function(service_url, callback) {
setTimeout(function() {
- callback(new Error('Authentication failure'));
+ // Google credentials currently adds string error codes to auth errors
+ var error = new Error('Authentication failure');
+ error.code = 'ENOENT';
+ callback(error);
}, 0);
}
};