tests: fix the out_stdout test ends before flushing
@@ -36,6 +36,8 @@ TEST(Outputs, json_invalid) {
total++;
}
+ sleep(1); /* waiting flush */
+
flb_stop(ctx);
flb_destroy(ctx);
}
@@ -71,6 +73,8 @@ TEST(Outputs, json_long) {
total++;
}
+ sleep(1); /* waiting flush */
+
flb_stop(ctx);
flb_destroy(ctx);
}
@@ -105,6 +109,8 @@ TEST(Outputs, json_small) {
total++;
}
+ sleep(1); /* waiting flush */
+
flb_stop(ctx);
flb_destroy(ctx);
}
