Skip to content

Commit

Permalink
[FOLD] Repair DepositAuthorized unit test
Browse files Browse the repository at this point in the history
  • Loading branch information
scottschurr committed Aug 19, 2020
1 parent e479e5f commit 3461cd4
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions src/test/rpc/DepositAuthorized_test.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -228,13 +228,20 @@ class DepositAuthorized_test : public beast::unit_test::suite
}
{
// Request an invalid ledger.
Json::Value args{depositAuthArgs(alice, becky, "17")};
Json::Value args{depositAuthArgs(alice, becky, "-1")};
Json::Value const result{
env.rpc("json", "deposit_authorized", args.toStyledString())};
verifyErr(result, "invalidParams", "ledgerIndexMalformed");
}
{
// Request a ledger that doesn't exist yet.
// Request a ledger that doesn't exist yet as a string.
Json::Value args{depositAuthArgs(alice, becky, "17")};
Json::Value const result{
env.rpc("json", "deposit_authorized", args.toStyledString())};
verifyErr(result, "lgrNotFound", "ledgerNotFound");
}
{
// Request a ledger that doesn't exist yet as an integer.
Json::Value args{depositAuthArgs(alice, becky)};
args[jss::ledger_index] = 17;
Json::Value const result{
Expand Down

0 comments on commit 3461cd4

Please sign in to comment.