diff options
| author | Dan Goodliffe <dan.goodliffe@octal.co.uk> | 2026-05-01 16:58:01 +0100 |
|---|---|---|
| committer | Dan Goodliffe <dan.goodliffe@octal.co.uk> | 2026-05-01 17:01:56 +0100 |
| commit | 0e768a00fab74818533458b5b40c84556b2137e0 (patch) | |
| tree | 3a405ae5ecbd71727b77e4a7892ad0b2815dddc4 /test/test-ingest.cpp | |
| parent | ed3598ac6f77f62b0c4fe32d4dab05784e5fa51d (diff) | |
| download | webstat-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/test-ingest.cpp')
| -rw-r--r-- | test/test-ingest.cpp | 2 |
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)); } |
