Skip to content

Commit 3d61953

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 655335f commit 3d61953

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
@@ -113,6 +113,9 @@ static void test_http_server_options(void)
113113

114114
out = flb_output_get_instance(ctx->config, out_ffd);
115115
TEST_CHECK(out != NULL);
116+
TEST_CHECK(out->tp_workers == 1);
117+
TEST_CHECK(out->is_threaded == FLB_TRUE);
118+
TEST_CHECK(out->tp != NULL);
116119

117120
prom_ctx = out->context;
118121
TEST_CHECK(prom_ctx != NULL);

0 commit comments

Comments
 (0)