Rearrange new test slightly

This commit is contained in:
Michael Lumish 2020-06-16 15:02:08 -07:00
parent 8a4a9b3235
commit 68bc74d0bd
1 changed files with 4 additions and 3 deletions

View File

@ -158,12 +158,13 @@ describe(`${anyGrpc.clientName} client -> ${anyGrpc.serverName} server`, functio
call.on('data', (value) => { call.on('data', (value) => {
responseCount++; responseCount++;
}); });
call.on('end', () => { call.on('status', (status) => {
assert.strictEqual(status.code, grpc.status.OK);
assert.strictEqual(responseCount, arg.response_parameters.length); assert.strictEqual(responseCount, arg.response_parameters.length);
done(); done();
}); });
call.on('status', function(status) { call.on('error', (error) => {
assert.strictEqual(status.code, grpc.status.OK); assert.ifError(error);
}); });
}); });
describe('max message size', function() { describe('max message size', function() {