Remove some "Env::close" noise from unit test output

This commit is contained in:
Scott Schurr
2021-03-12 18:14:39 -08:00
committed by manojsdoshi
parent 9eb9b8f631
commit 09ae9168ca
4 changed files with 19 additions and 9 deletions

View File

@@ -1670,12 +1670,17 @@ public:
Env env{*this, asAdmin ? envconfig() : envconfig(no_admin)};
Account gw{"gw"};
env.fund(XRP(200000), gw);
env.close();
// Note that calls to env.close() fail without admin permission.
if (asAdmin)
env.close();
auto USD = gw["USD"];
for (auto i = 0; i <= RPC::Tuning::bookOffers.rmax; i++)
env(offer(gw, XRP(50 + 1 * i), USD(1.0 + 0.1 * i)));
env.close();
if (asAdmin)
env.close();
Json::Value jvParams;
jvParams[jss::limit] = 1;