mirror of
https://github.com/Xahau/xahau.js.git
synced 2025-11-21 12:45:50 +00:00
UT: Fix intermitent timeouts.
This commit is contained in:
committed by
Stefan Thomas
parent
8196a1e15a
commit
6f66cf734c
@@ -138,7 +138,11 @@ var build_teardown = function (host) {
|
|||||||
var create_accounts = function (remote, src, amount, accounts, callback) {
|
var create_accounts = function (remote, src, amount, accounts, callback) {
|
||||||
assert(5 === arguments.length);
|
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()
|
remote.transaction()
|
||||||
.payment(src, account, amount)
|
.payment(src, account, amount)
|
||||||
.on('proposed', function (m) {
|
.on('proposed', function (m) {
|
||||||
|
|||||||
Reference in New Issue
Block a user