mirror of
https://github.com/phpbb/phpbb.git
synced 2025-08-03 23:37:39 +02:00
[ticket/17195] Stop artifically slowing down functional tests
PHPBB3-17195
This commit is contained in:
@@ -48,7 +48,6 @@ class phpbb_functional_test_case extends phpbb_test_case
|
|||||||
|
|
||||||
protected static $config = array();
|
protected static $config = array();
|
||||||
protected static $already_installed = false;
|
protected static $already_installed = false;
|
||||||
protected static $last_post_timestamp = 0;
|
|
||||||
|
|
||||||
static public function setUpBeforeClass(): void
|
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)
|
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);
|
$crawler = self::request('GET', $posting_url);
|
||||||
$this->assertStringContainsString($this->lang($posting_contains), $crawler->filter('html')->text());
|
$this->assertStringContainsString($this->lang($posting_contains), $crawler->filter('html')->text());
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user