From 6b7874e49ade49d087ddd3cadb51bcc685ebcbe9 Mon Sep 17 00:00:00 2001 From: Nathan Hourt Date: Mon, 13 May 2019 17:26:32 -0500 Subject: [PATCH] Rebase fixes --- tests/api_tests.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/api_tests.cpp b/tests/api_tests.cpp index 5c1147c..0902492 100644 --- a/tests/api_tests.cpp +++ b/tests/api_tests.cpp @@ -107,7 +107,7 @@ BOOST_AUTO_TEST_CASE(optionals_test) { auto server = std::make_shared(); server->on_connection([&]( const websocket_connection_ptr& c ){ - auto wsc = std::make_shared(*c, MAX_DEPTH); + auto wsc = std::make_shared(c, MAX_DEPTH); wsc->register_api(fc::api(optionals)); c->set_session_data( wsc ); }); @@ -119,7 +119,7 @@ BOOST_AUTO_TEST_CASE(optionals_test) { auto client = std::make_shared(); auto con = client->connect( "ws://localhost:" + std::to_string(listen_port) ); server->stop_listening(); - auto apic = std::make_shared(*con, MAX_DEPTH); + auto apic = std::make_shared(con, MAX_DEPTH); auto remote_optionals = apic->get_remote_api(); BOOST_CHECK_EQUAL(remote_optionals->foo("a"), "[\"a\",null,null]");