Skip to content

Commit 2c34d72

Browse files
cosmo0920edsiper
authored andcommitted
tests: runtime: Confirm evictions of records
Signed-off-by: Hiroshi Hatake <hiroshi@chronosphere.io>
1 parent 1de16e6 commit 2c34d72

1 file changed

Lines changed: 7 additions & 1 deletion

File tree

tests/runtime/out_cloudwatch.c

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -324,9 +324,15 @@ void flb_test_cloudwatch_error_put_log_events_not_found(void)
324324
flb_lib_push(ctx, in_ffd, (char *) JSON_TD, (int) sizeof(JSON_TD) - 1);
325325

326326
sleep(2);
327-
flb_stop(ctx);
328327
TEST_CHECK(cloudwatch_mock_call_count_get("PutLogEvents") == 1);
329328
TEST_CHECK(cloudwatch_mock_create_after_put_count_get() == 0);
329+
330+
flb_lib_push(ctx, in_ffd, (char *) JSON_TD, (int) sizeof(JSON_TD) - 1);
331+
332+
sleep(2);
333+
flb_stop(ctx);
334+
TEST_CHECK(cloudwatch_mock_call_count_get("PutLogEvents") == 2);
335+
TEST_CHECK(cloudwatch_mock_create_after_put_count_get() == 1);
330336
flb_destroy(ctx);
331337
unsetenv("TEST_PUT_LOG_EVENTS_ERROR");
332338
}

0 commit comments

Comments
 (0)