mirror of
https://github.com/danog/dns.git
synced 2024-11-30 04:29:06 +01:00
Use assertLessThan over simple assertTrue
This commit is contained in:
parent
6cdea2e995
commit
e9ee48e269
@ -37,7 +37,7 @@ abstract class SocketTest extends TestCase {
|
||||
/** @var Dns\Internal\Socket $socket */
|
||||
$socket = yield $this->connect();
|
||||
|
||||
$this->assertTrue($socket->getLastActivity() < time() + 1);
|
||||
$this->assertLessThan(time() + 1, $socket->getLastActivity());
|
||||
});
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user