mirror of
https://github.com/XRPLF/rippled.git
synced 2026-06-04 09:16:47 +00:00
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.
34 lines
695 B
C++
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
|