Fix a credentials plugin test to match changes in core

This commit is contained in:
murgatroid99 2017-11-14 15:56:12 -08:00
parent 56ba5d2482
commit ca50f660b7
2 changed files with 3 additions and 3 deletions

@ -1 +1 @@
Subproject commit 3a54b8673eed472679b11bb463cfcaf50ba6e282
Subproject commit 638c40c9eff83508fb17e8c0962f01fe24492b38

View File

@ -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();
});
});