@@ -22,7 +22,6 @@ namespace asio = boost::asio;
2222namespace redis = boost::redis;
2323using redis::detail::compose_setup_request;
2424using redis::detail::clear_response;
25- using redis::detail::check_setup_response;
2625using boost::system::error_code;
2726
2827namespace {
@@ -174,32 +173,6 @@ void test_clear_response_error()
174173 BOOST_TEST_EQ (resp.value ().size (), 0u );
175174}
176175
177- // check response
178- void test_check_response_success ()
179- {
180- redis::generic_response resp;
181- resp->push_back ({});
182- auto ec = check_setup_response (error_code (), resp);
183- BOOST_TEST_EQ (ec, error_code ());
184- }
185-
186- void test_check_response_io_error ()
187- {
188- redis::generic_response resp;
189- auto ec = check_setup_response (asio::error::already_open, resp);
190- BOOST_TEST_EQ (ec, asio::error::already_open);
191- }
192-
193- void test_check_response_server_error ()
194- {
195- redis::generic_response resp{
196- boost::system::in_place_error,
197- redis::adapter::error{redis::resp3::type::simple_error, " wrong password" }
198- };
199- auto ec = check_setup_response (error_code (), resp);
200- BOOST_TEST_EQ (ec, redis::error::resp3_hello);
201- }
202-
203176} // namespace
204177
205178int main ()
@@ -217,9 +190,5 @@ int main()
217190 test_clear_response_nonempty ();
218191 test_clear_response_error ();
219192
220- test_check_response_success ();
221- test_check_response_io_error ();
222- test_check_response_server_error ();
223-
224193 return boost::report_errors ();
225194}
0 commit comments