Files
rippled/src/test/rpc/Connect_test.cpp
Bart 1d42c4f6de refactor: Remove unnecessary copyright notices already covered by LICENSE.md (#5929)
Per XLS-0095, we are taking steps to rename ripple(d) to xrpl(d).

This change specifically removes all copyright notices referencing Ripple, XRPLF, and certain affiliated contributors upon mutual agreement, so the notice in the LICENSE.md file applies throughout. Copyright notices referencing external contributions remain as-is. Duplicate verbiage is also removed.
2025-11-04 08:33:42 +00:00

42 lines
939 B
C++

#include <test/jtx.h>
#include <xrpl/protocol/jss.h>
namespace ripple {
class Connect_test : public beast::unit_test::suite
{
void
testErrors()
{
testcase("Errors");
using namespace test::jtx;
{
// standalone mode should fail
Env env{*this};
BEAST_EXPECT(env.app().config().standalone());
auto const result = env.rpc("json", "connect", "{}");
BEAST_EXPECT(result[jss::result][jss::status] == "error");
BEAST_EXPECT(result[jss::result].isMember(jss::error));
BEAST_EXPECT(result[jss::result][jss::error] == "notSynced");
BEAST_EXPECT(
result[jss::result][jss::error_message] ==
"Not synced to the network.");
}
}
public:
void
run() override
{
testErrors();
}
};
BEAST_DEFINE_TESTSUITE(Connect, rpc, ripple);
} // namespace ripple