From 704b31e0f6247913d9d27cd9949c3b721b3fd17e 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/offer-test.js | 1 - test/testutils.js | 6 +++++- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/test/offer-test.js b/test/offer-test.js index 4b57c27341..e464c29557 100644 --- a/test/offer-test.js +++ b/test/offer-test.js @@ -156,7 +156,6 @@ buster.testCase("Offer tests", { }); }, - "//new user offer_create then ledger_accept then offer_cancel then ledger_accept." : function (done) { var self = this; diff --git a/test/testutils.js b/test/testutils.js index 4b4eae6f7c..76d1d55328 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) {