Skip to content

Commit 27c39f6

Browse files
committed
fix case
1 parent 6080724 commit 27c39f6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tests/test_rest_rpc.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -349,7 +349,7 @@ TEST_CASE("test_client_subscribe_not_exist_key") {
349349
server.set_error_callback([&stop](asio::error_code ec, string_view msg) {
350350
std::cout << "line: " << __LINE__ << ", msg: " << ec.message() << " -- "
351351
<< msg << std::endl;
352-
CHECK_EQ(ec, asio::error::invalid_argument);
352+
CHECK_EQ(ec, rpc_error::no_such_key);
353353
stop = true;
354354
});
355355
server.set_conn_timeout_callback([](int64_t conn_id) {

0 commit comments

Comments
 (0)