Skip to content

Commit

Permalink
Merge pull request #477 from OPUS4/issue476
Browse files Browse the repository at this point in the history
#476 Isolate test from date rounding in DB
  • Loading branch information
j3nsch authored Dec 13, 2021
2 parents 306ae8d + f490335 commit 2f7114a
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -40,8 +40,6 @@ class Application_Update_SetStatusOfExistingDoiTest extends ControllerTestCase
* @throws Opus_Model_Exception
*
* TODO test sets Status of all DOI identifier of published documents to 'registered' (side effect)
* TODO this test has failed once (date got modified or compare didn't work) on Travis and worked in the next run
* without changes - Why?
*/
public function testRunDoesNotModifyServerDateModified()
{
Expand All @@ -55,6 +53,9 @@ public function testRunDoesNotModifyServerDateModified()
$doc->addIdentifier($doi);
$docId = $doc->store();

// ServerDateModified wird manchmal gerundet beim Speichern = deshalb muss das Dokument noch mal geladen werden
// TODO https://github.com/OPUS4/framework/issues/228
$doc = new Opus_Document($docId);
$modified = $doc->getServerDateModified();

sleep(2);
Expand Down

0 comments on commit 2f7114a

Please sign in to comment.