Fix pathfind queuing and add unit test

This commit is contained in:
Chris Clark
2015-09-29 11:25:02 -07:00
parent b8bb191d24
commit 5217b66396
3 changed files with 28 additions and 15 deletions

View File

@@ -271,7 +271,8 @@ module.exports = function(port) {
request.id, request.source_account, request.destination_account,
request.destination_amount);
}
conn.send(response);
// delay response to simulate calculation time so we can test queuing
setTimeout(() => conn.send(response), 20);
});
return mock;