Also included unrelated doc fix
modified: doc/devel/unit-tests.dox
modified: src/lib/asiolink/tests/io_service_unittest.cc
@section unitTestsDatabaseConfig Databases Configuration for Unit Tests
- With the use of databases requiring separate authorisation, there are
+ With the use of databases requiring separate authorization, there are
certain database-specific pre-requisites for successfully running the unit
tests. These are listed in the following sections.
// Sleep for 5 ms.
usleep(5 * 1000);
- // Cancel the timer.
- timer.cancel();
-
// Stop the service.
io_service->stop();
EXPECT_EQ(0, cnt);
EXPECT_FALSE(timed_out);
EXPECT_FALSE(timer_fired);
+
+ // Cancel the timer.
+ timer.cancel();
+
+ io_service->restart();
+ io_service->poll();
}
}