diff --git a/src/test/rpc/GetAggregatePrice_test.cpp b/src/test/rpc/GetAggregatePrice_test.cpp index 076a50443e8..4c45b7b9d2b 100644 --- a/src/test/rpc/GetAggregatePrice_test.cpp +++ b/src/test/rpc/GetAggregatePrice_test.cpp @@ -35,10 +35,10 @@ class GetAggregatePrice_test : public beast::unit_test::suite { testcase("Errors"); using namespace jtx; + using Oracles = std::vector>; Account const owner{"owner"}; Account const some{"some"}; - static std::vector> oracles = { - {owner, 1}}; + static Oracles oracles = {{owner, 1}}; { Env env(*this); @@ -62,7 +62,7 @@ class GetAggregatePrice_test : public beast::unit_test::suite "Missing field 'oracles'."); // empty oracles array - ret = Oracle::aggregatePrice(env, "XRP", "USD", {{}}); + ret = Oracle::aggregatePrice(env, "XRP", "USD", Oracles{}); BEAST_EXPECT(ret[jss::error].asString() == "oracleMalformed"); // invalid oracle document id