diff options
Diffstat (limited to 'src/node/test')
-rw-r--r-- | src/node/test/surface_test.js | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/src/node/test/surface_test.js b/src/node/test/surface_test.js index f002c8b6dd..b0f3aa4b38 100644 --- a/src/node/test/surface_test.js +++ b/src/node/test/surface_test.js @@ -149,20 +149,19 @@ describe('Client#$waitForReady', function() { after(function() { server.shutdown(); }); - it('should complete when a call is initiated', function(done) { + it('should complete when called alone', function(done) { client.$waitForReady(Infinity, function(error) { assert.ifError(error); done(); }); - var call = client.div({}, function(err, response) {}); - call.cancel(); }); - it('should complete if $tryConnect is called', function(done) { + it('should complete when a call is initiated', function(done) { client.$waitForReady(Infinity, function(error) { assert.ifError(error); done(); }); - client.$tryConnect(); + var call = client.div({}, function(err, response) {}); + call.cancel(); }); it('should complete if called more than once', function(done) { done = multiDone(done, 2); |