We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
target_test.go
1 parent 318c640 commit 516f9deCopy full SHA for 516f9de
internal/component/loki/source/docker/internal/dockertarget/target_test.go
@@ -146,9 +146,9 @@ func TestDockerChunkWriter(t *testing.T) {
146
timestamp := []byte("2023-12-09T12:00:00.000000000Z ")
147
shortLine := []byte("short log line\n")
148
149
- longContent := make([]byte, 50*1024)
150
- for i := range longContent {
151
- longContent[i] = 'a'
+ var longContent []byte
+ for range 50 * 1024 {
+ longContent = append(longContent, 'a')
152
}
153
longContent = append(longContent, '\n')
154
0 commit comments