diff options
author | 2015-08-13 11:24:34 -0700 | |
---|---|---|
committer | 2015-08-13 11:24:34 -0700 | |
commit | 371354673f1a16658a3fbd5a04c3dcdf9b7ef30a (patch) | |
tree | 0fc80b7506d57ebb7075c0715d6279de2608891f /src/node/test | |
parent | 937ac9b023d9a4e7fda1b84416cfa948ddb6a197 (diff) |
Modified watchState functions to match C API
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); |