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:
		
							parent
							
								
									40c88eb490
								
							
						
					
					
						commit
						1a75b4558b
					
				|  | @ -298,7 +298,7 @@ func installActionsWorkflow(t *testing.T, testID, runnerLabel, testResultCMNameP | ||||||
| 		Name: wfName, | 		Name: wfName, | ||||||
| 		On: testing.On{ | 		On: testing.On{ | ||||||
| 			Push: &testing.Push{ | 			Push: &testing.Push{ | ||||||
| 				Branches: []string{"main"}, | 				Branches: []string{"master"}, | ||||||
| 			}, | 			}, | ||||||
| 		}, | 		}, | ||||||
| 		Jobs: map[string]testing.Job{}, | 		Jobs: map[string]testing.Job{}, | ||||||
|  | @ -403,5 +403,5 @@ func verifyActionsWorkflowRun(t *testing.T, env *testing.Env, testJobs []job) { | ||||||
| 		} | 		} | ||||||
| 
 | 
 | ||||||
| 		return results, err | 		return results, err | ||||||
| 	}, 60*time.Second, 10*time.Second).Should(gomega.Equal(expected)) | 	}, 3*60*time.Second, 10*time.Second).Should(gomega.Equal(expected)) | ||||||
| } | } | ||||||
|  |  | ||||||
|  | @ -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 { | 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 | 	cmd.Dir = dir | ||||||
| 	return cmd | 	return cmd | ||||||
| } | } | ||||||
|  |  | ||||||
		Loading…
	
		Reference in New Issue