Skip to content

Commit

Permalink
Simplify: remove needless response packet
Browse files Browse the repository at this point in the history
  • Loading branch information
piroor committed Apr 21, 2015
1 parent 33c8b22 commit 1388c90
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions test/droonga-protocol/connection.test.js
Expand Up @@ -402,7 +402,6 @@ suite('Connection', function() {
Math.random(),
callback,
{ timeout: 20 });
var response = utils.createReplyEnvelope(message, 'ignored', Math.random());
callback.takes(Connection.ERROR_GATEWAY_TIMEOUT, null);

utils.wait(0.01)
Expand All @@ -415,9 +414,7 @@ suite('Connection', function() {
'response listeners should be registered'
);
})
.then(utils.waitCb(0.02))
.then(utils.sendPacketToCb(utils.createPacket(response), utils.testReceivePort))
.then(utils.waitCb(0.01))
.then(utils.waitCb(0.03))
.then(function() {
assert.equal(
connection.listeners('reply:' + message.id).length,
Expand Down

0 comments on commit 1388c90

Please sign in to comment.