Fix unit test

This commit is contained in:
Nikita Mikhaylov 2021-09-07 13:51:30 +00:00
parent 9b38248e64
commit 231f64cf37

View File

@ -118,7 +118,10 @@ private:
ExecutableTaskPtr task;
CurrentMetrics::Increment increment;
std::atomic_bool is_currently_deleting{false};
Poco::Event is_done;
/// Actually autoreset=false is needed only for unit test
/// where multiple threads could remove tasks corresponding to the same storage
/// This scenario in not possible in reality.
Poco::Event is_done{/*autoreset=*/false};
};
using ItemPtr = std::shared_ptr<Item>;