Skip to content

Commit

Permalink
fix: unit test
Browse files Browse the repository at this point in the history
Signed-off-by: Vladislav Sukhin <[email protected]>
  • Loading branch information
vsukhin committed Jul 4, 2024
1 parent a0ed48a commit 7fd49ad
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions pkg/triggers/executor_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -201,6 +201,10 @@ func TestWorkflowExecute(t *testing.T) {
"WATCHER_EVENT_NAMESPACE": "",
"WATCHER_EVENT_RESOURCE": "",
},
RunningContext: &testkube.RunningContext{
Type_: string(testkube.RunningContextTypeTestTrigger),
Context: "test-trigger-1",
},
}
mockTestWorkflowExecution := testkube.TestWorkflowExecution{}
mockTestWorkflowExecutor.EXPECT().Execute(gomock.Any(), mockTestWorkflow, mockTestWorkflowExecutionRequest).Return(mockTestWorkflowExecution, nil)
Expand Down

0 comments on commit 7fd49ad

Please sign in to comment.