summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorDan Goodliffe <dan.goodliffe@octal.co.uk>2026-05-01 16:58:01 +0100
committerDan Goodliffe <dan.goodliffe@octal.co.uk>2026-05-01 17:01:56 +0100
commit0e768a00fab74818533458b5b40c84556b2137e0 (patch)
tree3a405ae5ecbd71727b77e4a7892ad0b2815dddc4 /test
parented3598ac6f77f62b0c4fe32d4dab05784e5fa51d (diff)
downloadwebstat-0e768a00fab74818533458b5b40c84556b2137e0.tar.bz2
webstat-0e768a00fab74818533458b5b40c84556b2137e0.tar.xz
webstat-0e768a00fab74818533458b5b40c84556b2137e0.zip
Append unparked lines to queue in finalise function
Fixes issue where queuedLines would be accessed from background thread.
Diffstat (limited to 'test')
-rw-r--r--test/test-ingest.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/test-ingest.cpp b/test/test-ingest.cpp
index 4f9c7ab..3b53529 100644
--- a/test/test-ingest.cpp
+++ b/test/test-ingest.cpp
@@ -322,7 +322,7 @@ BOOST_AUTO_TEST_CASE(IngestParked, *boost::unit_test::depends_on("I/ParkLogLine"
BOOST_REQUIRE(queuedLines.empty());
const auto result = jobIngestParkedLines();
BOOST_REQUIRE(result);
- BOOST_CHECK_EQUAL(result(), 1);
+ BOOST_CHECK_EQUAL(result(), 2);
BOOST_CHECK_EQUAL(queuedLines.size(), 2);
BOOST_CHECK(std::filesystem::is_empty(settings.fallbackDir));
}