Commit e909ff99 authored by hanfeng's avatar hanfeng

[trac678] fix the bug that alarm isn't cancelled which will blocking followed unit test

parent 4dfa50d9
......@@ -354,6 +354,8 @@ class DNSServerTest : public::testing::Test {
alarm(io_service_time_out);
service.run();
service.reset();
//cancel scheduled alarm
alarm(0);
std::signal(SIGALRM, prev_handler);
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment