From ca50f660b79c44deefe8380100b4f1eefe1c8ca5 Mon Sep 17 00:00:00 2001 From: murgatroid99 Date: Tue, 14 Nov 2017 15:56:12 -0800 Subject: [PATCH] Fix a credentials plugin test to match changes in core --- packages/grpc-native-core/deps/grpc | 2 +- test/api/credentials_test.js | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/packages/grpc-native-core/deps/grpc b/packages/grpc-native-core/deps/grpc index 3a54b867..638c40c9 160000 --- a/packages/grpc-native-core/deps/grpc +++ b/packages/grpc-native-core/deps/grpc @@ -1 +1 @@ -Subproject commit 3a54b8673eed472679b11bb463cfcaf50ba6e282 +Subproject commit 638c40c9eff83508fb17e8c0962f01fe24492b38 diff --git a/test/api/credentials_test.js b/test/api/credentials_test.js index e05ec764..729a5a9c 100644 --- a/test/api/credentials_test.js +++ b/test/api/credentials_test.js @@ -306,7 +306,7 @@ describe('client credentials', function() { done(); }); }); - it('should propagate errors that the updater emits', function(done) { + it('should fail the call if the updater fails', function(done) { var metadataUpdater = function(service_url, callback) { var error = new Error('Authentication error'); error.code = grpc.status.UNAUTHENTICATED; @@ -322,7 +322,7 @@ describe('client credentials', function() { assert.strictEqual(err.message, 'Getting metadata from plugin failed with error: ' + 'Authentication error'); - assert.strictEqual(err.code, grpc.status.UNAUTHENTICATED); + assert.notStrictEqual(err.code, grpc.status.OK); done(); }); });