Skip to content

Commit

Permalink
added comments
Browse files Browse the repository at this point in the history
  • Loading branch information
Andrew Huynh committed May 2, 2022
1 parent 817cd32 commit e30cc0d
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions integration/test/cloudwatchlogs/publish_logs_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -110,6 +110,11 @@ func TestRotatingLogsDoesNotSkipLines(t *testing.T) {
time.Sleep(agentRuntime)
test.StopAgent()

// These expected log lines are created using resources/write_and_rotate_logs.py,
// which are taken directly from the repro case in https://github.com/aws/amazon-cloudwatch-agent/issues/447
// logging.info(json.dumps({"Metric": "12345"*10}))
// logging.info(json.dumps({"Metric": "09876"*10}))
// logging.info({"Metric": "1234567890"*10})
lines := []string{
fmt.Sprintf("{\"Metric\": \"%s\"}", strings.Repeat("12345", 10)),
fmt.Sprintf("{\"Metric\": \"%s\"}", strings.Repeat("09876", 10)),
Expand Down

0 comments on commit e30cc0d

Please sign in to comment.