Permalink
Browse files

clean up test

  • Loading branch information...
1 parent e8351ed commit 7f87db38ed5d22bee2ecdaf629d470e3fa70a4e0 @rburns rburns committed Sep 19, 2012
Showing with 5 additions and 11 deletions.
  1. +5 −11 test/client.coffee
View
@@ -460,23 +460,17 @@ genTests = (client) -> testCase
test.done()
'Can open a document after closing a document': (test) ->
- console.log "PORT: #{@port}"
- client.open @name, 'text', "http://localhost:#{@port}/sjs", (error, doc1) =>
- console.log "ERROR: #{error} DOC1: #{doc1}"
+ port = @port
+ name = @name
+ client.open name, 'text', "http://localhost:#{port}/sjs", (error, doc1) =>
test.ifError error
test.ok doc1
doc1.close ->
- console.log "PORT: #{@port}"
- client.open @name + '2', 'text', "http://localhost:#{@port}/sjs", (error, doc2) =>
- console.log "ERROR: #{error} DOC2: #{doc2}"
+ client.open name + '1', 'text', "http://localhost:#{port}/sjs", (error, doc2) ->
test.ifError error
test.ok doc2
doc2.close ->
test.done()
- setTimeout ->
- test.ok false
- test.done()
- , 1000
# ** This is missing tests for submitOp receiving an error through its callback
@@ -491,4 +485,4 @@ genTests = (client) -> testCase
# test.done()
exports.native = genTests nativeclient
-exports.webclient = genTests webclient
+# exports.webclient = genTests webclient

0 comments on commit 7f87db3

Please sign in to comment.