From 0a395ebb6db862d582a8c809575592b7d55d23ee Mon Sep 17 00:00:00 2001 From: Marc Alexander Date: Fri, 22 Sep 2023 14:29:53 +0200 Subject: [PATCH] [ticket/17195] Stop artifically slowing down functional tests PHPBB3-17195 --- tests/test_framework/phpbb_functional_test_case.php | 8 -------- 1 file changed, 8 deletions(-) diff --git a/tests/test_framework/phpbb_functional_test_case.php b/tests/test_framework/phpbb_functional_test_case.php index a5b16082ff..18fe2bbf38 100644 --- a/tests/test_framework/phpbb_functional_test_case.php +++ b/tests/test_framework/phpbb_functional_test_case.php @@ -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());