mirror of https://github.com/grpc/grpc-node.git
Rearrange new test slightly
This commit is contained in:
parent
8a4a9b3235
commit
68bc74d0bd
|
@ -158,12 +158,13 @@ describe(`${anyGrpc.clientName} client -> ${anyGrpc.serverName} server`, functio
|
|||
call.on('data', (value) => {
|
||||
responseCount++;
|
||||
});
|
||||
call.on('end', () => {
|
||||
call.on('status', (status) => {
|
||||
assert.strictEqual(status.code, grpc.status.OK);
|
||||
assert.strictEqual(responseCount, arg.response_parameters.length);
|
||||
done();
|
||||
});
|
||||
call.on('status', function(status) {
|
||||
assert.strictEqual(status.code, grpc.status.OK);
|
||||
call.on('error', (error) => {
|
||||
assert.ifError(error);
|
||||
});
|
||||
});
|
||||
describe('max message size', function() {
|
||||
|
|
Loading…
Reference in New Issue