Explorar o código

Fixed test for File class

- fixed "lastModified" test by narrowing the expected value
pcmattulat %!s(int64=4) %!d(string=hai) anos
pai
achega
466dc2582b
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      test/cases/io/FileTest.cpp

+ 1 - 1
test/cases/io/FileTest.cpp

@@ -165,7 +165,7 @@ namespace {
   TEST_F(FileTest, lastModified)
   {
     ls_std::File file {this->fileLocation};
-    ASSERT_EQ(1597475488, file.lastModified());
+    ASSERT_TRUE(file.lastModified() > 1590000000);
   }
 
   TEST_F(FileTest, makeDirectory)