From 5601d0277afd92c098eb31b9989322f10068254e Mon Sep 17 00:00:00 2001 From: Bronek Kozicki <823856+Bronek@users.noreply.github.com> Date: Mon, 9 Oct 2023 15:56:15 +0100 Subject: [PATCH] Add DeliverMax to subscribe tests --- src/test/rpc/Subscribe_test.cpp | 15 ++++++++++++--- 1 file changed, 12 insertions(+), 3 deletions(-) diff --git a/src/test/rpc/Subscribe_test.cpp b/src/test/rpc/Subscribe_test.cpp index 5322319907f..90213a71c3e 100644 --- a/src/test/rpc/Subscribe_test.cpp +++ b/src/test/rpc/Subscribe_test.cpp @@ -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 @@ -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