Catch up with Gearman's libtest
[m6w6/libmemcached] / tests / cycle.cc
index ac087f4f2e6f47c28e24c426b4231ff02a63cf24..fe4ca1b37016180dc860924f7f37bd2dea28ee74 100644 (file)
@@ -70,7 +70,7 @@ static test_return_t server_startup_multiple_TEST(void *obj)
 static test_return_t shutdown_and_remove_TEST(void *obj)
 {
   server_startup_st *servers= (server_startup_st*)obj;
-  servers->shutdown_and_remove();
+  servers->clear();
 
   return TEST_SUCCESS;
 }
@@ -106,7 +106,7 @@ static test_return_t validate_sanity_INIT(void *object)
 static test_return_t collection_FINAL(void *object)
 {
   server_startup_st *servers= (server_startup_st*)object;
-  servers->shutdown_and_remove();
+  servers->clear();
 
   return TEST_SUCCESS;
 }
@@ -123,7 +123,7 @@ static void *world_create(server_startup_st& servers, test_return_t& )
 
 void get_world(Framework *world)
 {
-  world->collections= collection;
-  world->_create= world_create;
+  world->collections(collection);
+  world->create(world_create);
 }