aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorGravatar murgatroid99 <mlumish@google.com>2015-10-05 11:19:34 -0700
committerGravatar murgatroid99 <mlumish@google.com>2015-10-05 11:19:34 -0700
commit08005eda53827a3892cc0d68395d5a7f9658b31b (patch)
tree1d822216a430a2f35bfa2b0dfebb87d8ba437cf9
parent67eadf7c64b452b5edc630ce6c2140e3f38c2d62 (diff)
Removed a pair of racy Node tests
-rw-r--r--src/node/test/surface_test.js45
1 files changed, 0 insertions, 45 deletions
diff --git a/src/node/test/surface_test.js b/src/node/test/surface_test.js
index d917c7a171..7af3ad895e 100644
--- a/src/node/test/surface_test.js
+++ b/src/node/test/surface_test.js
@@ -707,29 +707,6 @@ describe('Other conditions', function() {
proxy.forceShutdown();
});
describe('Cancellation', function() {
- it('With a unary call', function(done) {
- done = multiDone(done, 2);
- proxy_impl.unary = function(parent, callback) {
- client.unary(parent.request, function(err, value) {
- try {
- assert(err);
- assert.strictEqual(err.code, grpc.status.CANCELLED);
- } finally {
- callback(err, value);
- done();
- }
- }, null, {parent: parent});
- call.cancel();
- };
- proxy.addProtoService(test_service, proxy_impl);
- var proxy_port = proxy.bind('localhost:0', server_insecure_creds);
- proxy.start();
- var proxy_client = new Client('localhost:' + proxy_port,
- grpc.Credentials.createInsecure());
- var call = proxy_client.unary({}, function(err, value) {
- done();
- });
- });
it('With a client stream call', function(done) {
done = multiDone(done, 2);
proxy_impl.clientStream = function(parent, callback) {
@@ -753,28 +730,6 @@ describe('Other conditions', function() {
done();
});
});
- it('With a server stream call', function(done) {
- done = multiDone(done, 2);
- proxy_impl.serverStream = function(parent) {
- var child = client.serverStream(parent.request, null,
- {parent: parent});
- child.on('error', function(err) {
- assert(err);
- assert.strictEqual(err.code, grpc.status.CANCELLED);
- done();
- });
- call.cancel();
- };
- proxy.addProtoService(test_service, proxy_impl);
- var proxy_port = proxy.bind('localhost:0', server_insecure_creds);
- proxy.start();
- var proxy_client = new Client('localhost:' + proxy_port,
- grpc.Credentials.createInsecure());
- var call = proxy_client.serverStream({});
- call.on('error', function(err) {
- done();
- });
- });
it('With a bidi stream call', function(done) {
done = multiDone(done, 2);
proxy_impl.bidiStream = function(parent) {