summaryrefslogtreecommitdiffstats
path: root/searchlib
diff options
context:
space:
mode:
authorTor Egge <Tor.Egge@yahooinc.com>2023-07-14 16:14:11 +0200
committerGitHub <noreply@github.com>2023-07-14 16:14:11 +0200
commit029bdb1cf4dd550060c66689e837a6d1408ac948 (patch)
treef10641d49f5779a0159679346fb2e2ac0f6e932e /searchlib
parent436572664dc53a4f03d79a424814c66b822643c1 (diff)
parent753f61994e6b2a1411d1ce8a5d82eb387cd81b63 (diff)
Merge pull request #27785 from vespa-engine/toregge/use-std-filesystem-remove-in-docstore-unit-test
Use std::filesystem::remove in docstore unit test.
Diffstat (limited to 'searchlib')
-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());