(backend, connection)
| 425 | }); |
| 426 | |
| 427 | function delayedReconnect(backend, connection) { |
| 428 | // Disconnect after the message has sent and before the server will have |
| 429 | // had a chance to reply |
| 430 | process.nextTick(function() { |
| 431 | connection.close(); |
| 432 | // Reconnect once the server has a chance to save the op data |
| 433 | setTimeout(function() { |
| 434 | backend.connect(connection); |
| 435 | }, 100); |
| 436 | }); |
| 437 | } |
| 438 | |
| 439 | it('resends create when disconnected before ack', function(done) { |
| 440 | var backend = this.backend; |
no outgoing calls
no test coverage detected
searching dependent graphs…