Files
rippled/src/test/jtx/WSClient_test.cpp
Bart 1eb0fdac65 refactor: Rename ripple namespace to xrpl (#5982)
This change renames all occurrences of `namespace ripple` and `ripple::` to `namespace xrpl` and `xrpl::`, respectively, as well as the names of test suites. It also provides a script to allow developers to replicate the changes in their local branch or fork to avoid conflicts.
2025-12-11 16:51:49 +00:00

34 lines
695 B
C++

#include <test/jtx.h>
#include <test/jtx/WSClient.h>
#include <xrpl/beast/unit_test.h>
namespace xrpl {
namespace test {
class WSClient_test : public beast::unit_test::suite
{
public:
void
run() override
{
using namespace jtx;
Env env(*this);
auto wsc = makeWSClient(env.app().config());
{
Json::Value jv;
jv["streams"] = Json::arrayValue;
jv["streams"].append("ledger");
}
env.fund(XRP(10000), "alice");
env.close();
auto jv = wsc->getMsg(std::chrono::seconds(1));
pass();
}
};
BEAST_DEFINE_TESTSUITE(WSClient, jtx, xrpl);
} // namespace test
} // namespace xrpl