Skip to content

Commit

Permalink
[FOLD] Add required include to fix unity=OFF build; fix designated in…
Browse files Browse the repository at this point in the history
…itialization order in the unit-tests.
  • Loading branch information
gregtatcam committed Nov 13, 2023
1 parent 2c9af08 commit 4faf02b
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
1 change: 1 addition & 0 deletions src/ripple/rpc/handlers/GetAggregatePrice.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
*/
//==============================================================================

#include <ripple/app/ledger/LedgerMaster.h>
#include <ripple/app/main/Application.h>
#include <ripple/json/json_value.h>
#include <ripple/ledger/ReadView.h>
Expand Down
10 changes: 5 additions & 5 deletions src/test/app/Oracle_test.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -155,12 +155,12 @@ struct Oracle_test : public beast::unit_test::suite
oracle.set(CreateArg{});
BEAST_EXPECT(oracle.exists());
oracle.set(UpdateArg{
.provider = "provider",
.series = {{"XRP", "USD", 740, 1}},
.provider = "provider",
.ter = ter(temMALFORMED)});
oracle.set(UpdateArg{
.symbolClass = "currency",
.series = {{"XRP", "USD", 740, 1}},
.symbolClass = "currency",
.ter = ter(temMALFORMED)});
}

Expand Down Expand Up @@ -360,12 +360,12 @@ struct Oracle_test : public beast::unit_test::suite

// Update
oracle.set(UpdateArg{
.msig = msig(becky),
.series = {{"XRP", "USD", 740, 1}},
.msig = msig(becky),
.ter = ter(tefBAD_QUORUM)});
oracle.set(UpdateArg{
.msig = msig(zelda),
.series = {{"XRP", "USD", 740, 1}},
.msig = msig(zelda),
.ter = ter(tefBAD_SIGNATURE)});
oracle.set(UpdateArg{
.series = {{"XRP", "USD", 741, 1}}, .msig = msig(becky, bogie)});
Expand All @@ -379,8 +379,8 @@ struct Oracle_test : public beast::unit_test::suite
env.close();
// old list fails
oracle.set(UpdateArg{
.msig = msig(becky, bogie),
.series = {{"XRP", "USD", 740, 1}},
.msig = msig(becky, bogie),
.ter = ter(tefBAD_SIGNATURE)});
// updated list succeeds
oracle.set(UpdateArg{
Expand Down

0 comments on commit 4faf02b

Please sign in to comment.