aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/node/test/surface_test.js
diff options
context:
space:
mode:
authorGravatar murgatroid99 <mlumish@google.com>2015-08-13 11:24:34 -0700
committerGravatar murgatroid99 <mlumish@google.com>2015-08-13 11:24:34 -0700
commit371354673f1a16658a3fbd5a04c3dcdf9b7ef30a (patch)
tree0fc80b7506d57ebb7075c0715d6279de2608891f /src/node/test/surface_test.js
parent937ac9b023d9a4e7fda1b84416cfa948ddb6a197 (diff)
Modified watchState functions to match C API
Diffstat (limited to 'src/node/test/surface_test.js')
-rw-r--r--src/node/test/surface_test.js9
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);