Remove code duplication in test fixtures
[libt2n] / test / wrapper.cpp
index e4bffb6..b1d30cd 100644 (file)
@@ -424,30 +424,10 @@ BOOST_AUTO_TEST_CASE(ignore_handler_reconnects)
 
     BOOST_CHECK_EQUAL(2,cnt);
 }
-BOOST_AUTO_TEST_SUITE_END()
-
-
-
-class test_wrapper_noserverFixture : public KillChildOnShutdownFixture
-{
-protected:
-    void send_hello(string hello_string, socket_server* ss, int conn_id)
-    {
-        server_connection *sc=ss->get_connection(conn_id);
-        sc->write(hello_string);
-    }
 
-public:
-    test_wrapper_noserverFixture()
-    {
-    }
-
-    ~test_wrapper_noserverFixture()
-    {
-    }
-};
+BOOST_AUTO_TEST_SUITE_END()
 
-BOOST_FIXTURE_TEST_SUITE(test_wrapper_noserver, test_wrapper_noserverFixture)
+BOOST_FIXTURE_TEST_SUITE(test_wrapper_noserver, KillChildOnShutdownFixture)
 
 BOOST_AUTO_TEST_CASE(ignore_noserver)
 {