tests fixed
This commit is contained in:
parent
1e158e80c8
commit
98d563ad9e
@ -11,6 +11,10 @@ TEST(Handle, Functionalities) {
|
||||
ASSERT_NO_THROW(handle->close());
|
||||
ASSERT_FALSE(handle->active());
|
||||
|
||||
// this forces an internal call to the close callback
|
||||
// (possible leak detected by valgrind otherwise)
|
||||
loop->run();
|
||||
|
||||
ASSERT_NO_THROW(handle->reference());
|
||||
ASSERT_TRUE(handle->referenced());
|
||||
ASSERT_NO_THROW(handle->unreference());
|
||||
|
||||
@ -108,6 +108,11 @@ TEST(Timer, Repeat) {
|
||||
|
||||
ASSERT_NO_THROW(handle->repeat(uvw::TimerHandle::Time{42}));
|
||||
ASSERT_EQ(handle->repeat(), uvw::TimerHandle::Time{42});
|
||||
ASSERT_NO_THROW(handle->close());
|
||||
|
||||
// this forces an internal call to the close callback
|
||||
// (possible leak detected by valgrind otherwise)
|
||||
loop->run();
|
||||
}
|
||||
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user