Skip to content

Commit 871f2f9

Browse files
author
Matthew Fisher
committed
Merge pull request #2144 from bacongobbler/test-fixes
test(builds): optimize commit workflow
2 parents c8e736e + 5056337 commit 871f2f9

2 files changed

Lines changed: 1 addition & 7 deletions

File tree

tests/builds_test.go

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -41,11 +41,7 @@ func buildSetup(t *testing.T) *utils.DeisTestConfig {
4141
}
4242
utils.Execute(t, appsCreateCmd, cfg, false, "")
4343
utils.Execute(t, gitPushCmd, cfg, false, "")
44-
if err := utils.CreateFile(cfg.ExampleApp); err != nil {
45-
t.Fatal(err)
46-
}
47-
utils.Execute(t, gitAddCmd, cfg, false, "")
48-
utils.Execute(t, gitCommitCmd, cfg, false, "")
44+
utils.Execute(t, "git commit --allow-empty -m bump", cfg, false, "")
4945
utils.Execute(t, gitPushCmd, cfg, false, "")
5046
if err := utils.Chdir(".."); err != nil {
5147
t.Fatal(err)

tests/integration_test.go

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,6 @@ var (
1414
gitCloneCmd = "if [ ! -d {{.ExampleApp}} ] ; then git clone https://github.com/deis/{{.ExampleApp}}.git ; fi"
1515
gitRemoveCmd = "git remote remove deis"
1616
gitPushCmd = "git push deis master"
17-
gitAddCmd = "git add ."
18-
gitCommitCmd = "git commit -m fake"
1917
)
2018

2119
func TestGlobal(t *testing.T) {

0 commit comments

Comments
 (0)