Add test that destruction doesn't throw

This commit is contained in:
Jason Rhinelander 2020-07-10 17:26:58 -03:00
parent ee080e0550
commit d2f852c217
1 changed files with 5 additions and 0 deletions

View File

@ -25,6 +25,11 @@ TEST_CASE("tagged thread start functions", "[tagged][start]") {
}
}
TEST_CASE("tagged threads quit-before-start", "[tagged][quit]") {
auto lmq = std::make_unique<lokimq::LokiMQ>(get_logger(""), LogLevel::trace);
auto t_abc = lmq->add_tagged_thread("abc");
REQUIRE_NOTHROW(lmq.reset());
}
TEST_CASE("batch jobs to tagged threads", "[tagged][batch]") {
lokimq::LokiMQ lmq{get_logger(""), LogLevel::trace};