Skip to content

Commit cf54462

Browse files
authored
Added test cases for usleep. (#7406)
1 parent 11b2fbe commit cf54462

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

tests/Cases/RoomAdapterTest.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -136,7 +136,8 @@ public function testRedisAdapter()
136136
$room->cleanUpExpiredOnce();
137137
$this->assertContains('not_expired', $room->clients('foo'));
138138

139-
$room->setTtl(1);
139+
// TODO: The latest swoole cannot support sleep time < 1ms
140+
$room->setTtl(2);
140141
$room->add('renewed', 'foo');
141142
$room->renew('renewed');
142143
usleep(500);

0 commit comments

Comments
 (0)