Skip to content

Commit

Permalink
Move sleep from mailer
Browse files Browse the repository at this point in the history
  • Loading branch information
jm-mailosaur authored Oct 21, 2018
1 parent ebddcfc commit 516f42f
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions tests/Mailer.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,6 @@ public static function sendEmails(MailosaurClient $client, $server, $quantity)
for ($i = 0; $i < $quantity; $i++) {
self::sendEmail($client, $server);
}

// Wait to ensure email has arrived
sleep(2);
}

public static function sendEmail(MailosaurClient $client, $server, $sendToAddress = null)
Expand Down Expand Up @@ -57,4 +54,4 @@ public static function sendEmail(MailosaurClient $client, $server, $sendToAddres

$mailer->send($message);
}
}
}

0 comments on commit 516f42f

Please sign in to comment.