Skip to content

Commit cf5ecf0

Browse files
committed
Tests: avoid rate limit
1 parent 47049b7 commit cf5ecf0

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

Diff for: tests/wpunit/APITest.php

+3
Original file line numberDiff line numberDiff line change
@@ -3889,6 +3889,9 @@ public function testUpdateSubscriberWithInvalidSubscriberID()
38893889
*/
38903890
public function testUnsubscribeByEmail()
38913891
{
3892+
// Avoid a rate limit due to previous tests.
3893+
sleep(2);
3894+
38923895
// Add a subscriber.
38933896
$emailAddress = $this->generateEmailAddress();
38943897
$result = $this->api->create_subscriber(

0 commit comments

Comments
 (0)