Skip to content

Commit 4c91fe0

Browse files
committed
Merge remote-tracking branch 'origin/fix-unsubscribe-test' into add-broadcast-date-filtering
2 parents 4f8ec26 + 7ac138c commit 4c91fe0

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

tests/ConvertKitAPITest.php

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4060,6 +4060,9 @@ public function testUnsubscribeByEmail()
40604060
email_address: $emailAddress
40614061
);
40624062

4063+
// Wait a moment to ensure subscriber is created.
4064+
sleep(3);
4065+
40634066
// Unsubscribe.
40644067
$this->assertNull($this->api->unsubscribe_by_email($emailAddress));
40654068
}
@@ -4107,6 +4110,9 @@ public function testUnsubscribe()
41074110
email_address: $emailAddress
41084111
);
41094112

4113+
// Wait a moment to ensure subscriber is created.
4114+
sleep(3);
4115+
41104116
// Unsubscribe.
41114117
$this->assertNull($this->api->unsubscribe($result->subscriber->id));
41124118
}

0 commit comments

Comments
 (0)