Fix E2E test to actualy pass

I have a dedicated GitHub organization and a private repository to run this E2E test. After a few fixes included in this change, it has successfully passed.
This commit is contained in:
Yusuke Kuoka 2021-09-15 00:23:16 +00:00
parent 40c88eb490
commit 1a75b4558b
2 changed files with 3 additions and 3 deletions

View File

@ -298,7 +298,7 @@ func installActionsWorkflow(t *testing.T, testID, runnerLabel, testResultCMNameP
Name: wfName,
On: testing.On{
Push: &testing.Push{
Branches: []string{"main"},
Branches: []string{"master"},
},
},
Jobs: map[string]testing.Job{},
@ -403,5 +403,5 @@ func verifyActionsWorkflowRun(t *testing.T, env *testing.Env, testJobs []job) {
}
return results, err
}, 60*time.Second, 10*time.Second).Should(gomega.Equal(expected))
}, 3*60*time.Second, 10*time.Second).Should(gomega.Equal(expected))
}

View File

@ -89,7 +89,7 @@ func (g *GitRepo) gitCommitCmd(ctx context.Context, dir, msg string) *exec.Cmd {
}
func (g *GitRepo) gitPushCmd(ctx context.Context, dir string) *exec.Cmd {
cmd := exec.CommandContext(ctx, "git", "push", "origin", "main")
cmd := exec.CommandContext(ctx, "git", "push", "origin", "master")
cmd.Dir = dir
return cmd
}