Skip to content

Commit

Permalink
fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
motatoes committed Jan 10, 2024
1 parent aa03387 commit 88fcc82
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions cli/cmd/digger/main_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -925,7 +925,7 @@ func TestGitHubNewCommentContext(t *testing.T) {
backendApi := &utils.MockBackendApi{}

event := context.Event.(github.IssueCommentEvent)
jobs, _, err := dggithub.ConvertGithubIssueCommentEventToJobs(&event, impactedProjects, requestedProject, map[string]configuration.Workflow{})
jobs, _, err := dggithub.ConvertGithubIssueCommentEventToJobs(&event, impactedProjects, requestedProject, map[string]configuration.Workflow{}, "prbranch")
_, _, err = digger.RunJobs(jobs, prManager, prManager, lock, reporter, planStorage, policyChecker, backendApi, "")
assert.NoError(t, err)
if err != nil {
Expand Down Expand Up @@ -1017,7 +1017,7 @@ func TestGitHubTestPRCommandCaseInsensitivity(t *testing.T) {
var requestedProject = project
workflows := make(map[string]configuration.Workflow, 1)
workflows["default"] = configuration.Workflow{}
jobs, _, err := dggithub.ConvertGithubIssueCommentEventToJobs(&ghEvent, impactedProjects, &requestedProject, workflows)
jobs, _, err := dggithub.ConvertGithubIssueCommentEventToJobs(&ghEvent, impactedProjects, &requestedProject, workflows, "prbranch")

assert.Equal(t, 1, len(jobs))
assert.Equal(t, "digger plan", jobs[0].Commands[0])
Expand Down

0 comments on commit 88fcc82

Please sign in to comment.