Skip to content

Commit

Permalink
fix mock function
Browse files Browse the repository at this point in the history
  • Loading branch information
kooomix committed Sep 7, 2023
1 parent 11f2430 commit 8ba21ee
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions attackchains/attackchainhandler_mocks.go
Original file line number Diff line number Diff line change
Expand Up @@ -190,9 +190,9 @@ func GetAttackTrackMocks() ([]v1alpha1.AttackTrack, error) {

attackTracks := []v1alpha1.AttackTrack{}

for _, attackTrackMock := range attackTracksMocks {
for i := range attackTracksMocks {
attackTrack := &v1alpha1.AttackTrack{}
err := json.Unmarshal([]byte(attackTrackMock), &attackTrack)
err := json.Unmarshal([]byte(attackTracksMocks[i]), &attackTrack)

if err != nil {
return nil, err
Expand Down

0 comments on commit 8ba21ee

Please sign in to comment.