aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTor Egge <Tor.Egge@online.no>2023-07-14 14:09:00 +0200
committerTor Egge <Tor.Egge@online.no>2023-07-14 14:09:00 +0200
commit753f61994e6b2a1411d1ce8a5d82eb387cd81b63 (patch)
tree3a6f8d1a78bc02e2f8d512f9e222c9f5b2184d3a
parent04c653308e09f05fbc1dc137d3a4290e47a76054 (diff)
Use std::filesystem::remove in docstore unit test.
-rw-r--r--searchlib/src/tests/docstore/logdatastore/logdatastore_test.cpp19
1 files changed, 1 insertions, 18 deletions
diff --git a/searchlib/src/tests/docstore/logdatastore/logdatastore_test.cpp b/searchlib/src/tests/docstore/logdatastore/logdatastore_test.cpp
index 0d64683b4a6..1d7bd9b8504 100644
--- a/searchlib/src/tests/docstore/logdatastore/logdatastore_test.cpp
+++ b/searchlib/src/tests/docstore/logdatastore/logdatastore_test.cpp
@@ -204,7 +204,7 @@ TEST("test that DirectIOPadding works accordng to spec") {
EXPECT_EQUAL(1u, padAfter);
EXPECT_TRUE(file.Close());
- FastOS_File::Delete(file.GetFileName());
+ std::filesystem::remove(std::filesystem::path(file.GetFileName()));
}
#endif
@@ -748,23 +748,6 @@ TEST("testWriteRead") {
std::filesystem::remove_all(std::filesystem::path("empty"));
}
-TEST("requireThatSyncTokenIsUpdatedAfterFlush") {
-#if 0
- std::string file = "sync.dat";
- FastOS_File::Delete(file.c_str());
- {
- vespalib::DataBuffer buf;
- SimpleDataStore store(file);
- EXPECT_EQUAL(0u, store.lastSyncToken());
- makeData(buf, 10);
- store.write(0, buf, 10);
- store.flush(4);
- EXPECT_EQUAL(4u, store.lastSyncToken());
- }
- FastOS_File::Delete(file.c_str());
-#endif
-}
-
TEST("requireThatFlushTimeIsAvailableAfterFlush") {
DirectoryHandler testDir("flushtime");
vespalib::system_time before(vespalib::system_clock::now());