소스 검색

Fixed test for File class

- fixed "lastModified" test by narrowing the expected value
pcmattulat 4 년 전
부모
커밋
466dc2582b
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  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)