[ticket/17195] Stop artifically slowing down functional tests

PHPBB3-17195
This commit is contained in:
Marc Alexander 2023-09-22 14:29:53 +02:00
parent 54ea9e0aef
commit 0a395ebb6d
No known key found for this signature in database
GPG key ID: 50E0D2423696F995

View file

@ -48,7 +48,6 @@ class phpbb_functional_test_case extends phpbb_test_case
protected static $config = array();
protected static $already_installed = false;
protected static $last_post_timestamp = 0;
static public function setUpBeforeClass(): void
{
@ -1301,13 +1300,6 @@ class phpbb_functional_test_case extends phpbb_test_case
*/
protected function submit_message($posting_url, $posting_contains, $form_data)
{
if (time() == self::$last_post_timestamp)
{
// Travis is too fast, so we have to wait to not mix up the post/topic order
sleep(1);
}
self::$last_post_timestamp = time();
$crawler = self::request('GET', $posting_url);
$this->assertStringContainsString($this->lang($posting_contains), $crawler->filter('html')->text());