From 650268726807fe9d2b99712d0128eb298f38db34 Mon Sep 17 00:00:00 2001 From: nathan Date: Mon, 22 Nov 2021 10:28:29 -0700 Subject: [PATCH] Fix infolog double PM change test --- infolog/tests/DoubleLinkPMTest.php | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/infolog/tests/DoubleLinkPMTest.php b/infolog/tests/DoubleLinkPMTest.php index c14517e90d..0fe9af73e3 100644 --- a/infolog/tests/DoubleLinkPMTest.php +++ b/infolog/tests/DoubleLinkPMTest.php @@ -173,7 +173,12 @@ class DoubleLinkPMTest extends \EGroupware\Api\EtemplateTest $this->makeProject('3'); $new_project = $this->pm_id[2]; + // Sleep for a bit to make the modified time different, or it will fail + sleep(1); + // Fake opening the edit dialog, important not to pass an array to accurately copy normal behaviour + // New BO to make sure we get a clean load, no caching + $this->ui->bo = $this->bo = new \infolog_bo(); $this->ui->edit($this->info_id); $content = self::$mocked_exec_result;