From faa0a662c740a0d0d26d58e0e19bb4b887d642a5 Mon Sep 17 00:00:00 2001 From: Alex Beregszaszi Date: Fri, 20 Oct 2017 12:44:52 +0100 Subject: Always create the correct account even if gaps are needed --- test/RPCSession.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'test') diff --git a/test/RPCSession.cpp b/test/RPCSession.cpp index b99c1c06..c06c3997 100644 --- a/test/RPCSession.cpp +++ b/test/RPCSession.cpp @@ -348,7 +348,7 @@ string const& RPCSession::accountCreate() string const& RPCSession::accountCreateIfNotExists(size_t _id) { - if (_id >= m_accounts.size()) + while ((_id + 1) > m_accounts.size()) accountCreate(); return m_accounts[_id]; } -- cgit