Skip to content

Commit

Permalink
[receiver/cloudfoundryreceiver] FIX 601: Implicit memory aliasing in …
Browse files Browse the repository at this point in the history
…for loop

Co-authored-by: Sam Clulow <sam.clulow@springernature.com>
Co-authored-by: Cem Deniz Kabakci <cem.kabakci@springer.com>
Co-authored-by: Tomas Mota <tomas.mota@springernature.com>
  • Loading branch information
4 people committed Jul 2, 2024
1 parent ecffbe3 commit 985e94d
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion receiver/cloudfoundryreceiver/converter_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -212,7 +212,8 @@ func TestConvertLogsEnvelope(t *testing.T) {
},
},
}
for _, tt := range tests {
for i := range tests {
tt := tests[i]
t.Run(tt.id, func(t *testing.T) {
logSlice := plog.NewLogRecordSlice()
e := convertEnvelopeToLogs(&tt.envelope, logSlice, now)
Expand Down

0 comments on commit 985e94d

Please sign in to comment.