Skip to content

Commit 62ca560

Browse files
committed
tests: runtime: cover Prometheus exporter output worker
Verify that the Prometheus exporter default creates and starts a single output worker thread pool. Signed-off-by: Stefano Tondo <stondo@gmail.com>
1 parent 086d94d commit 62ca560

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

tests/runtime/out_prometheus_exporter.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -96,6 +96,9 @@ static void test_http_server_options(void)
9696

9797
out = flb_output_get_instance(ctx->config, out_ffd);
9898
TEST_CHECK(out != NULL);
99+
TEST_CHECK(out->tp_workers == 1);
100+
TEST_CHECK(out->is_threaded == FLB_TRUE);
101+
TEST_CHECK(out->tp != NULL);
99102

100103
prom_ctx = out->context;
101104
TEST_CHECK(prom_ctx != NULL);

0 commit comments

Comments
 (0)