mirror of
https://github.com/XRPLF/rippled.git
synced 2025-12-06 17:27:55 +00:00
Add ledger save/load test (RIPD-1378)
Provide unit test to invoke ledger load at startup.
This commit is contained in:
committed by
Nik Bougalis
parent
fb60cc9b5b
commit
be0fb67d8d
@@ -170,7 +170,8 @@ Env::AppBundle::AppBundle(beast::unit_test::suite& suite,
|
||||
std::move(logs), std::move(timeKeeper_));
|
||||
app = owned.get();
|
||||
app->logs().threshold(beast::severities::kError);
|
||||
app->setup();
|
||||
if(! app->setup())
|
||||
Throw<std::runtime_error> ("Env::AppBundle: setup failed");
|
||||
timeKeeper->set(
|
||||
app->getLedgerMaster().getClosedLedger()->info().closeTime);
|
||||
app->doStart();
|
||||
|
||||
Reference in New Issue
Block a user