Skip to content

Commit

Permalink
filter_log_to_metrics: Increase unit test timeout
Browse files Browse the repository at this point in the history
Signed-off-by: Richard Treu <[email protected]>
  • Loading branch information
drbugfinder-work committed Apr 3, 2024
1 parent 0617634 commit 2a71af3
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions tests/runtime/filter_log_to_metrics.c
Original file line number Diff line number Diff line change
Expand Up @@ -684,7 +684,7 @@ void flb_test_log_to_metrics_label(void)
for (i = 0; i < 2; i++){
flb_lib_push(ctx, in_ffd, input, strlen(input));
}
wait_with_timeout(500, finalString);
wait_with_timeout(2000, finalString);
result = strstr(finalString, expected_label_name);
if (!TEST_CHECK(result != NULL)) {
TEST_MSG("expected substring:\n%s\ngot:\n%s\n", expected_label_name, finalString);
Expand All @@ -694,5 +694,4 @@ void flb_test_log_to_metrics_label(void)
TEST_MSG("expected substring:\n%s\ngot:\n%s\n", expected_label_value, finalString);
}
filter_test_destroy(ctx);

}
}

0 comments on commit 2a71af3

Please sign in to comment.