Skip to content

Commit 516f9de

Browse files
committed
Fix lint error in target_test.go
1 parent 318c640 commit 516f9de

File tree

1 file changed

+3
-3
lines changed
  • internal/component/loki/source/docker/internal/dockertarget

1 file changed

+3
-3
lines changed

internal/component/loki/source/docker/internal/dockertarget/target_test.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -146,9 +146,9 @@ func TestDockerChunkWriter(t *testing.T) {
146146
timestamp := []byte("2023-12-09T12:00:00.000000000Z ")
147147
shortLine := []byte("short log line\n")
148148

149-
longContent := make([]byte, 50*1024)
150-
for i := range longContent {
151-
longContent[i] = 'a'
149+
var longContent []byte
150+
for range 50 * 1024 {
151+
longContent = append(longContent, 'a')
152152
}
153153
longContent = append(longContent, '\n')
154154

0 commit comments

Comments
 (0)