Skip to content

Commit

Permalink
chore: fix racey test case in rawk8seventsreceiver (#1239)
Browse files Browse the repository at this point in the history
A likely mistype in rawk8seventsreceiver.TestNoStorage causes a data
race. Corrected the typo to fix the race case.

Signed-off-by: Christian Kruse <[email protected]>
  • Loading branch information
c-kruse authored Sep 6, 2023
1 parent 5dadb4b commit 65aad8c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/receiver/rawk8seventsreceiver/receiver_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -338,7 +338,7 @@ func TestNoStorage(t *testing.T) {

// Create the second k8s event.
secondEvent := getEvent()
firstEvent.UID = types.UID("ec279341-e2d8-4b2a-b17d-6e0566481002")
secondEvent.UID = types.UID("ec279341-e2d8-4b2a-b17d-6e0566481002")
listWatch.Add(secondEvent)

// Both events should be picked up by the receiver.
Expand Down

0 comments on commit 65aad8c

Please sign in to comment.