From 6a569e81b0949963b61e388988a8b0365a0e533c Mon Sep 17 00:00:00 2001 From: team317 <2629757717@qq.com> Date: Sun, 17 Mar 2024 21:53:15 +0800 Subject: [PATCH] format lines that are too long --- tests/test_rest_rpc.cpp | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/tests/test_rest_rpc.cpp b/tests/test_rest_rpc.cpp index 06b1479..046b6aa 100644 --- a/tests/test_rest_rpc.cpp +++ b/tests/test_rest_rpc.cpp @@ -153,8 +153,10 @@ TEST_CASE("test_client_sync_call") { CHECK(r); auto result = client.call("add", 1, 2); CHECK_EQ(result, 3); - CHECK_THROWS_WITH_AS(client.call("add", 1, "2"), "unpack failed: Args not match!", std::logic_error); - CHECK_THROWS_WITH_AS(client.call("Add", 1, 2), "unknown function: 3961593724", std::logic_error); + CHECK_THROWS_WITH_AS(client.call("add", 1, "2"), + "unpack failed: Args not match!", std::logic_error); + CHECK_THROWS_WITH_AS(client.call("Add", 1, 2), + "unknown function: 3961593724", std::logic_error); } TEST_CASE("test_client_sync_call_return_void") { @@ -218,7 +220,8 @@ TEST_CASE("test_client_async_call") { auto fu = client.async_call("hello", "purecpp"); CHECK_NOTHROW(fu.get().as()); // no return auto fu_err = client.async_call("Hello", "purecpp"); - CHECK_THROWS_WITH_AS(fu_err.get().as(), "unknown function: 2333776211", std::logic_error); + CHECK_THROWS_WITH_AS(fu_err.get().as(), + "unknown function: 2333776211", std::logic_error); } TEST_CASE("test_client_async_call_not_connect") { rpc_client client("127.0.0.1", 9001);