Skip to content

Commit 977af8f

Browse files
committed
make some time dependent tests more resilient
1 parent f38fde2 commit 977af8f

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

Tests/Transport/Smtp/SmtpTransportTest.php

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,9 @@
2222
use Symfony\Component\Mime\Exception\InvalidArgumentException;
2323
use Symfony\Component\Mime\RawMessage;
2424

25+
/**
26+
* @group time-sensitive
27+
*/
2528
class SmtpTransportTest extends TestCase
2629
{
2730
public function testToString()
@@ -83,7 +86,7 @@ public function testSendDoesPingAboveThreshold()
8386
$this->assertNotContains("NOOP\r\n", $stream->getCommands());
8487

8588
$stream->clearCommands();
86-
sleep(1);
89+
usleep(1500000);
8790

8891
$transport->send(new RawMessage('Message 3'), $envelope);
8992
$this->assertContains("NOOP\r\n", $stream->getCommands());

0 commit comments

Comments
 (0)