mirror of
https://github.com/XRPLF/rippled.git
synced 2026-10-04 02:38:02 +00:00
fix(test): follow TempDir out of beast:: after the develop merge
develop moved TempDir from beast:: to xrpl::, deleting include/xrpl/beast/utility/temp_dir.h in favour of include/xrpl/basics/FileUtilities.h. The merge kept this branch's references to the old API, so the tree no longer compiled: the missing header is a fatal include, and because DatabaseConfig_test.cpp lands in the xrpld unity blob it broke the xrpld target itself, not just the tests. Swap the include and drop the stale beast:: qualifier on 17 uses. The three src/tests/libxrpl/nodestore files already include FileUtilities.h and already spell TempDir unqualified elsewhere, so only the qualifier was wrong there. DatabaseConfig_test.cpp needed the include as well; it sits in namespace xrpl::node_store, so unqualified TempDir resolves to xrpl::TempDir through the enclosing namespace. Two further uses exist only on the sync-diagnostics tip and are fixed there rather than here.
This commit is contained in:
@@ -223,7 +223,7 @@ TEST(BackendWriteStats, non_measuring_backends_report_absence_not_zeros)
|
||||
|
||||
DummyScheduler scheduler;
|
||||
beast::Journal const journal{TestSink::instance()};
|
||||
beast::TempDir const tempDir;
|
||||
TempDir const tempDir;
|
||||
|
||||
Section params;
|
||||
params.set("type", type);
|
||||
|
||||
@@ -285,7 +285,7 @@ TEST_P(NodeStoreDatabaseTest, write_stats_forwarded_from_backend)
|
||||
TEST(NodeStoreDatabase, sub_millisecond_fetch_latency_is_reported)
|
||||
{
|
||||
CapturingScheduler scheduler;
|
||||
beast::TempDir const nodeDb;
|
||||
TempDir const nodeDb;
|
||||
Section nodeParams;
|
||||
nodeParams.set("type", "nudb");
|
||||
nodeParams.set("path", nodeDb.path());
|
||||
|
||||
@@ -356,7 +356,7 @@ TEST(NuDBFactory, configuration_parsing)
|
||||
|
||||
TEST(NuDBFactory, write_stats_accumulate_per_insert)
|
||||
{
|
||||
beast::TempDir const tempDir;
|
||||
TempDir const tempDir;
|
||||
auto const params = makeSection(tempDir.path());
|
||||
DummyScheduler scheduler;
|
||||
beast::Journal const journal(TestSink::instance());
|
||||
@@ -457,7 +457,7 @@ TEST(NuDBFactory, write_stats_accumulate_per_insert)
|
||||
// ScopeExit runs its function during unwinding.
|
||||
TEST(NuDBFactory, write_stats_count_duplicate_key_inserts)
|
||||
{
|
||||
beast::TempDir const tempDir;
|
||||
TempDir const tempDir;
|
||||
auto const params = makeSection(tempDir.path());
|
||||
DummyScheduler scheduler;
|
||||
beast::Journal const journal(TestSink::instance());
|
||||
@@ -522,7 +522,7 @@ TEST(NuDBFactory, write_stats_count_duplicate_key_inserts)
|
||||
// while the real one satisfies it as soon as any two inserts overlap.
|
||||
TEST(NuDBFactory, write_stats_measure_depth_under_real_overlap)
|
||||
{
|
||||
beast::TempDir const tempDir;
|
||||
TempDir const tempDir;
|
||||
auto const params = makeSection(tempDir.path());
|
||||
DummyScheduler scheduler;
|
||||
beast::Journal const journal(TestSink::instance());
|
||||
@@ -597,7 +597,7 @@ TEST(NuDBFactory, write_stats_measure_depth_under_real_overlap)
|
||||
|
||||
TEST(NuDBFactory, write_load_reports_writer_depth)
|
||||
{
|
||||
beast::TempDir const tempDir;
|
||||
TempDir const tempDir;
|
||||
auto const params = makeSection(tempDir.path());
|
||||
DummyScheduler scheduler;
|
||||
beast::Journal const journal(TestSink::instance());
|
||||
|
||||
Reference in New Issue
Block a user