Skip to content

Commit

Permalink
Fixes Fuzz test for UpsertExperimentToGit
Browse files Browse the repository at this point in the history
Signed-off-by: nagesh bansal <nageshbansal59@gmail.com>
  • Loading branch information
Nageshbansal committed Mar 12, 2024
1 parent e222b0c commit 2a535c5
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,7 @@ func FuzzUpdateChaosExperiment(f *testing.F) {
ExperimentType: &model.AllExperimentType[0],
}, &experimentType, nil).Once()
mockServices.ChaosExperimentService.On("ProcessExperimentUpdate", mock.Anything, mock.Anything, mock.Anything, mock.Anything, mock.Anything, mock.Anything, mock.Anything).Return(nil).Once()

mockServices.GitOpsService.On("UpsertExperimentToGit", ctx, mock.Anything, mock.Anything).Return(nil).Once()
store := store.NewStore()
res, err := mockServices.ChaosExperimentHandler.UpdateChaosExperiment(ctx, targetStruct.experiment, targetStruct.projectID, store)
if err != nil {
Expand Down

0 comments on commit 2a535c5

Please sign in to comment.