aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/node
diff options
context:
space:
mode:
authorGravatar murgatroid99 <mlumish@google.com>2015-10-21 14:03:19 -0700
committerGravatar murgatroid99 <mlumish@google.com>2015-10-21 14:03:19 -0700
commit5901d908599516c098aaa7b51f26add6688fb73a (patch)
tree035b127eed54745123e1abf7f718fe0b872b08c2 /src/node
parent3ee9c5917f47f6b1ddbb402b6beb6c675c04cf55 (diff)
Fixed lint errors
Diffstat (limited to 'src/node')
-rw-r--r--src/node/test/credentials_test.js6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/node/test/credentials_test.js b/src/node/test/credentials_test.js
index 4427e3edb3..46bb7b78fd 100644
--- a/src/node/test/credentials_test.js
+++ b/src/node/test/credentials_test.js
@@ -71,7 +71,7 @@ var fakeSuccessfulGoogleCredentials = {
var fakeFailingGoogleCredentials = {
getRequestMetadata: function(service_url, callback) {
setTimeout(function() {
- callback(new Error("Authorization failure"));
+ callback(new Error('Authorization failure'));
}, 0);
}
};
@@ -219,14 +219,14 @@ describe('client credentials', function() {
});
});
it('Should not add metadata with just SSL credentials', function(done) {
+ // Tests idempotency of credentials composition
var metadataUpdater = function(service_url, callback) {
var metadata = new grpc.Metadata();
metadata.set('plugin_key', 'plugin_value');
callback(null, metadata);
};
var creds = grpc.credentials.createFromMetadataGenerator(metadataUpdater);
- var combined_creds = grpc.credentials.combineChannelCredentials(
- client_ssl_creds, creds);
+ grpc.credentials.combineChannelCredentials(client_ssl_creds, creds);
var client = new Client('localhost:' + port, client_ssl_creds,
client_options);
var call = client.unary({}, function(err, data) {