Skip to content

Commit

Permalink
Add DeliverMax to subscribe tests
Browse files Browse the repository at this point in the history
  • Loading branch information
Bronek committed Oct 9, 2023
1 parent 8a6fa0d commit 5601d02
Showing 1 changed file with 12 additions and 3 deletions.
15 changes: 12 additions & 3 deletions src/test/rpc/Subscribe_test.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -194,8 +194,12 @@ class Subscribe_test : public beast::unit_test::suite
// Check stream update for payment transaction
BEAST_EXPECT(wsc->findMsg(5s, [&](auto const& jv) {
return jv[jss::meta]["AffectedNodes"][1u]["CreatedNode"]
["NewFields"][jss::Account] ==
Account("alice").human();
["NewFields"][jss::Account] //
== Account("alice").human() &&
jv[jss::transaction][jss::TransactionType] //
== jss::Payment &&
jv[jss::transaction][jss::DeliverMax] //
== "10000000010";
}));

// Check stream update for accountset transaction
Expand All @@ -211,7 +215,12 @@ class Subscribe_test : public beast::unit_test::suite
// Check stream update for payment transaction
BEAST_EXPECT(wsc->findMsg(5s, [&](auto const& jv) {
return jv[jss::meta]["AffectedNodes"][1u]["CreatedNode"]
["NewFields"][jss::Account] == Account("bob").human();
["NewFields"][jss::Account] //
== Account("bob").human() &&
jv[jss::transaction][jss::TransactionType] //
== jss::Payment &&
jv[jss::transaction][jss::DeliverMax] //
== "10000000010";
}));

// Check stream update for accountset transaction
Expand Down

0 comments on commit 5601d02

Please sign in to comment.