Skip to content

Commit

Permalink
add \n to log messages in test
Browse files Browse the repository at this point in the history
  • Loading branch information
barrettj12 committed Aug 8, 2023
1 parent c3c8b45 commit 7f4697c
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions internals/overlord/logstate/loki_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -22,39 +22,39 @@ func (*lokiSuite) TestLokiRequest(c *C) {
input := []servicelog.Entry{{
Time: time.Date(2023, 12, 31, 12, 34, 50, 0, time.UTC),
Service: "svc1",
Message: "log line #1",
Message: "log line #1\n",
}, {
Time: time.Date(2023, 12, 31, 12, 34, 51, 0, time.UTC),
Service: "svc2",
Message: "log line #2",
Message: "log line #2\n",
}, {
Time: time.Date(2023, 12, 31, 12, 34, 52, 0, time.UTC),
Service: "svc1",
Message: "log line #3",
Message: "log line #3\n",
}, {
Time: time.Date(2023, 12, 31, 12, 34, 53, 0, time.UTC),
Service: "svc3",
Message: "log line #4",
Message: "log line #4\n",
}, {
Time: time.Date(2023, 12, 31, 12, 34, 54, 0, time.UTC),
Service: "svc1",
Message: "log line #5",
Message: "log line #5\n",
}, {
Time: time.Date(2023, 12, 31, 12, 34, 55, 0, time.UTC),
Service: "svc3",
Message: "log line #6",
Message: "log line #6\n",
}, {
Time: time.Date(2023, 12, 31, 12, 34, 56, 0, time.UTC),
Service: "svc2",
Message: "log line #7",
Message: "log line #7\n",
}, {
Time: time.Date(2023, 12, 31, 12, 34, 57, 0, time.UTC),
Service: "svc1",
Message: "log line #8",
Message: "log line #8\n",
}, {
Time: time.Date(2023, 12, 31, 12, 34, 58, 0, time.UTC),
Service: "svc4",
Message: "log line #9",
Message: "log line #9\n",
}}

expected := `
Expand Down

0 comments on commit 7f4697c

Please sign in to comment.