diff --git a/src/test/consensus/UNLReport_test.cpp b/src/test/consensus/UNLReport_test.cpp index 078593c85..7b83dbb39 100644 --- a/src/test/consensus/UNLReport_test.cpp +++ b/src/test/consensus/UNLReport_test.cpp @@ -494,28 +494,6 @@ class UNLReportFork_test : public beast::unit_test::suite }; std::vector vlKeys; - STTx - createUNLRTx1( - std::uint32_t seq, - PublicKey const& importKey, - PublicKey const& valKey) - { - auto fill = [&](auto& obj) { - obj.setFieldU32(sfLedgerSequence, seq); - obj.set(([&]() { - auto inner = std::make_unique(sfActiveValidator); - inner->setFieldVL(sfPublicKey, valKey); - return inner; - })()); - obj.set(([&]() { - auto inner = std::make_unique(sfImportVLKey); - inner->setFieldVL(sfPublicKey, importKey); - return inner; - })()); - }; - return STTx(ttUNL_REPORT, fill); - } - void testVLImportByzantine() { @@ -555,10 +533,11 @@ class UNLReportFork_test : public beast::unit_test::suite e.trustAndConnect(a + b + c + d + e, delay); PeerGroup network = a + b + c + d + e; - +#if 0 StreamCollector sc{std::cout}; sim.collectors.add(sc); +#endif // set prior state sim.run(255); @@ -612,6 +591,8 @@ class UNLReportFork_test : public beast::unit_test::suite BEAST_EXPECT(sim.synchronized()); BEAST_EXPECT(sim.branches() == 1); + + pass(); } void diff --git a/src/test/rpc/Transaction_test.cpp b/src/test/rpc/Transaction_test.cpp index cc3f70a15..b1567e4e6 100644 --- a/src/test/rpc/Transaction_test.cpp +++ b/src/test/rpc/Transaction_test.cpp @@ -367,7 +367,7 @@ class Transaction_test : public beast::unit_test::suite if (deltaEndSeq) BEAST_EXPECT(!result[jss::result][jss::searched_all].asBool()); else - BEAST_EXPECT(!result[jss::result][jss::searched_all].asBool()); + BEAST_EXPECT(result[jss::result][jss::searched_all].asBool()); } // Find transactions outside of provided range. @@ -435,7 +435,7 @@ class Transaction_test : public beast::unit_test::suite result[jss::result][jss::status] == jss::error && result[jss::result][jss::error] == NOT_FOUND); - BEAST_EXPECT(!result[jss::result][jss::searched_all].asBool()); + BEAST_EXPECT(result[jss::result][jss::searched_all].asBool()); } // Provide range without providing the `binary`