Skip to content

Commit 85231b9

Browse files
committed
test: fix rebase test
1 parent f802d73 commit 85231b9

File tree

4 files changed

+8
-4
lines changed

4 files changed

+8
-4
lines changed

pkg/integration/tests/sync/pull_merge_conflict.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,8 @@ var PullMergeConflict = NewIntegrationTest(NewIntegrationTestArgs{
1515
shell.Commit("one")
1616
shell.UpdateFileAndAdd("file", "content2")
1717
shell.Commit("two")
18-
shell.EmptyCommit("three")
18+
shell.CreateFileAndAdd("file2", "content3")
19+
shell.Commit("three")
1920

2021
shell.CloneIntoRemote("origin")
2122

pkg/integration/tests/sync/pull_rebase.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,8 @@ var PullRebase = NewIntegrationTest(NewIntegrationTestArgs{
2222
shell.SetBranchUpstream("master", "origin/master")
2323

2424
shell.HardReset("HEAD^^")
25-
shell.EmptyCommit("four")
25+
shell.CreateFileAndAdd("file2", "content3")
26+
shell.Commit("four")
2627

2728
shell.SetConfig("pull.rebase", "true")
2829
},

pkg/integration/tests/sync/pull_rebase_interactive_conflict.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,8 @@ var PullRebaseInteractiveConflict = NewIntegrationTest(NewIntegrationTestArgs{
2424
shell.HardReset("HEAD^^")
2525
shell.UpdateFileAndAdd("file", "content4")
2626
shell.Commit("four")
27-
shell.EmptyCommit("five")
27+
shell.CreateFileAndAdd("file2", "content5")
28+
shell.Commit("five")
2829

2930
shell.SetConfig("pull.rebase", "interactive")
3031
},

pkg/integration/tests/sync/pull_rebase_interactive_conflict_drop.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,8 @@ var PullRebaseInteractiveConflictDrop = NewIntegrationTest(NewIntegrationTestArg
2424
shell.HardReset("HEAD^^")
2525
shell.UpdateFileAndAdd("file", "content4")
2626
shell.Commit("four")
27-
shell.EmptyCommit("five")
27+
shell.CreateFileAndAdd("file2", "content5")
28+
shell.Commit("five")
2829

2930
shell.SetConfig("pull.rebase", "interactive")
3031
},

0 commit comments

Comments
 (0)