1
0
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:
Gabriel Caruso 2018-03-31 01:16:24 -03:00 committed by Niklas Keller
parent 6cdea2e995
commit e9ee48e269

View File

@ -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());
});
}
}