tests: fix the test ends before flushing
@@ -88,6 +88,8 @@ TEST(Outputs, json_long) {
total++;
}
+ sleep(1); /* waiting flush */
+
flb_stop(ctx);
flb_destroy(ctx);
@@ -133,6 +135,8 @@ TEST(Outputs, json_small) {
total++;
}
+ sleep(1); /* waiting flush */
+
flb_stop(ctx);
flb_destroy(ctx);
