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) => {
|
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() {
|
||||||
|
|
Loading…
Reference in New Issue