From 6f66cf734c1107ebb50b7350a6d86ddc4bfd96d5 Mon Sep 17 00:00:00 2001 From: Arthur Britto Date: Fri, 14 Dec 2012 19:07:46 -0800 Subject: [PATCH] UT: Fix intermitent timeouts. --- test/testutils.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/test/testutils.js b/test/testutils.js index 4b4eae6f..76d1d553 100644 --- a/test/testutils.js +++ b/test/testutils.js @@ -138,7 +138,11 @@ var build_teardown = function (host) { var create_accounts = function (remote, src, amount, accounts, callback) { assert(5 === arguments.length); - async.forEachSeries(accounts, function (account, callback) { + async.forEach(accounts, function (account, callback) { + // Cache the seq as 1. + // Otherwise, when other operations attempt to opperate async against the account they may get confused. + remote.set_account_seq(account, 1); + remote.transaction() .payment(src, account, amount) .on('proposed', function (m) {