mirror of
https://github.com/grpc/grpc-node.git
synced 2025-12-08 18:23:54 +00:00
Fix a credentials plugin test to match changes in core
This commit is contained in:
parent
56ba5d2482
commit
ca50f660b7
@ -1 +1 @@
|
||||
Subproject commit 3a54b8673eed472679b11bb463cfcaf50ba6e282
|
||||
Subproject commit 638c40c9eff83508fb17e8c0962f01fe24492b38
|
||||
@ -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();
|
||||
});
|
||||
});
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user