diff options
author | Andreas Fischer <bantu@phpbb.com> | 2014-10-29 15:10:40 +0100 |
---|---|---|
committer | Andreas Fischer <bantu@phpbb.com> | 2014-10-29 15:10:40 +0100 |
commit | 57afbbb48aea55cdec56c4807eaa7c9ed77eb3d0 (patch) | |
tree | 34d7b5acb89fdd674414173769513e3cf352d8c3 /tests/test_framework/phpbb_functional_test_case.php | |
parent | ae55db6da49e15418020f0901619c4c832460a4d (diff) | |
parent | 17928563a2a265f4b70feef64e5030ea3c602269 (diff) | |
download | forums-57afbbb48aea55cdec56c4807eaa7c9ed77eb3d0.tar forums-57afbbb48aea55cdec56c4807eaa7c9ed77eb3d0.tar.gz forums-57afbbb48aea55cdec56c4807eaa7c9ed77eb3d0.tar.bz2 forums-57afbbb48aea55cdec56c4807eaa7c9ed77eb3d0.tar.xz forums-57afbbb48aea55cdec56c4807eaa7c9ed77eb3d0.zip |
Merge branch 'develop-ascraeus' into develop
* develop-ascraeus:
[ticket/13241] Remove sleep() and change flood interval instead
[ticket/13241] Remove sleep() since the method takes care of this now
[ticket/13241] Sleep for 1 second when posting twice in the same second
[ticket/13241] Fix pagination with global announcements
[ticket/13241] Correctly ignore announcements from topics list
[ticket/13241] Add a functional test for viewforum with global announcement
Diffstat (limited to 'tests/test_framework/phpbb_functional_test_case.php')
-rw-r--r-- | tests/test_framework/phpbb_functional_test_case.php | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/tests/test_framework/phpbb_functional_test_case.php b/tests/test_framework/phpbb_functional_test_case.php index ffc5266200..cdb3d01524 100644 --- a/tests/test_framework/phpbb_functional_test_case.php +++ b/tests/test_framework/phpbb_functional_test_case.php @@ -38,6 +38,7 @@ class phpbb_functional_test_case extends phpbb_test_case static protected $config = array(); static protected $already_installed = false; + static protected $last_post_timestamp = 0; static public function setUpBeforeClass() { @@ -1097,6 +1098,12 @@ 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->assertContains($this->lang($posting_contains), $crawler->filter('html')->text()); |