Skip to content

Commit f4ce845

Browse files
committed
Add a delay to tests to avoid 429 rate limit
1 parent d34caae commit f4ce845

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

tests/wpunit/APITest.php

+3
Original file line numberDiff line numberDiff line change
@@ -95,6 +95,9 @@ public function setUp(): void
9595
$_ENV['CONVERTKIT_OAUTH_ACCESS_TOKEN_NO_DATA'],
9696
$_ENV['CONVERTKIT_OAUTH_REFRESH_TOKEN_NO_DATA']
9797
);
98+
99+
// Wait a second to avoid hitting a 429 rate limit.
100+
sleep(1);
98101
}
99102

100103
/**

0 commit comments

Comments
 (0)