summaryrefslogtreecommitdiff
path: root/test/test-ingest.cpp
diff options
context:
space:
mode:
authorDan Goodliffe <dan@randomdan.homeip.net>2025-08-27 20:49:18 +0100
committerDan Goodliffe <dan@randomdan.homeip.net>2025-09-01 20:02:59 +0100
commita795f8e1ece4209e587e237f5b084ec92df21a90 (patch)
treeb8bc1248bac0ef0dc309b17e8d09e850723775a4 /test/test-ingest.cpp
parent720b701fac13f464addb2116301d9a9a2998d041 (diff)
downloadwebstat-a795f8e1ece4209e587e237f5b084ec92df21a90.tar.bz2
webstat-a795f8e1ece4209e587e237f5b084ec92df21a90.tar.xz
webstat-a795f8e1ece4209e587e237f5b084ec92df21a90.zip
Use a DB connection pool rather than a single connection
Diffstat (limited to 'test/test-ingest.cpp')
-rw-r--r--test/test-ingest.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/test/test-ingest.cpp b/test/test-ingest.cpp
index 4845bf6..fb35915 100644
--- a/test/test-ingest.cpp
+++ b/test/test-ingest.cpp
@@ -178,5 +178,6 @@ BOOST_DATA_TEST_CASE(StoreLogLine,
}),
line)
{
- WebStat::Ingestor {"test-hostname", DB::MockDatabase::openConnectionTo("webstat")}.ingestLogLine(line);
+ WebStat::Ingestor {"test-hostname", std::make_shared<MockDBPool>("webstat")}.ingestLogLine(
+ DB::MockDatabase::openConnectionTo("webstat").get(), line);
}