Skip to content

Commit

Permalink
Transaction_test(API v2) - use Json::Value's to_string overload inste…
Browse files Browse the repository at this point in the history
…ad of the << operator
  • Loading branch information
ckeshava committed Oct 20, 2023
1 parent 198e7cd commit d141c94
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions src/test/rpc/Transaction_test.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -737,16 +737,12 @@ class Transaction_test : public beast::unit_test::suite
if (BEAST_EXPECT(result[jss::result].isMember(name)))
{
auto const received = result[jss::result][name];
std::ostringstream ssReceived;
ssReceived << received;
std::ostringstream ssExpected;
ssExpected << *memberIt;
BEAST_EXPECTS(
received == *memberIt,
"Transaction contains \n\"" + name + "\": " //
+ ssReceived.str() //
+ to_string(received) //
+ "but expected " //
+ ssExpected.str());
+ to_string(*memberIt));
}
}
}
Expand Down

0 comments on commit d141c94

Please sign in to comment.