Skip to content

Commit 157cf06

Browse files
fix assertion inconsistencies
1 parent c30d625 commit 157cf06

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

tests/CollectionItemTest.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -240,9 +240,10 @@ public function collection_item_page_metadata_contains_modified_time()
240240

241241
$this->buildSite($files, $config, $pretty = true);
242242

243-
$this->assertEquals(
243+
$this->assertEqualsWithDelta(
244244
$files->getChild('build/collection/page/index.html')->filemtime(),
245245
$this->clean($files->getChild('build/collection/page/index.html')->getContent()),
246+
1, // allow mtimes to be within 1 second difference
246247
);
247248
}
248249
}

0 commit comments

Comments
 (0)