File tree Expand file tree Collapse file tree 2 files changed +4
-2
lines changed
Expand file tree Collapse file tree 2 files changed +4
-2
lines changed Original file line number Diff line number Diff 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}
Original file line number Diff line number Diff line change @@ -109,9 +109,10 @@ public function page_metadata_contains_source_file_modified_time()
109109 $ files = $ this ->setupSource (['page.blade.php ' => '{{ $page->getModifiedTime() }} ' ]);
110110 $ this ->buildSite ($ files , [], $ pretty = true );
111111
112- $ this ->assertEquals (
112+ $ this ->assertEqualsWithDelta (
113113 $ files ->getChild ('build/page/index.html ' )->filemtime (),
114114 $ this ->clean ($ files ->getChild ('build/page/index.html ' )->getContent ()),
115+ 1 , // allow mtimes to be within 1 second difference
115116 );
116117 }
117118
You can’t perform that action at this time.
0 commit comments