summaryrefslogtreecommitdiffstats
path: root/pkg/integration/tests
diff options
context:
space:
mode:
authorStefan Haller <stefan@haller-berlin.de>2023-02-23 22:51:49 +0100
committerStefan Haller <stefan@haller-berlin.de>2023-03-07 09:49:34 +0100
commita68cd6af9c572a83cbaf511a72b8a89c1d534e0b (patch)
treeb8d3feb25fc4a3498298dfd79645e8c6ccb34ae6 /pkg/integration/tests
parent4ca012dbfbe0c6be33da36f442a4d7d10019fafd (diff)
Concatenate patches to apply them all at once
This fixes the problem that patching would stop at the first file that has a conflict. We always want to patch all files. Also, it's faster for large patches, and the code is a little bit simpler too.
Diffstat (limited to 'pkg/integration/tests')
-rw-r--r--pkg/integration/tests/patch_building/apply_in_reverse_with_conflict.go3
1 files changed, 2 insertions, 1 deletions
diff --git a/pkg/integration/tests/patch_building/apply_in_reverse_with_conflict.go b/pkg/integration/tests/patch_building/apply_in_reverse_with_conflict.go
index 8c3e61a86..04d160a01 100644
--- a/pkg/integration/tests/patch_building/apply_in_reverse_with_conflict.go
+++ b/pkg/integration/tests/patch_building/apply_in_reverse_with_conflict.go
@@ -52,7 +52,7 @@ var ApplyInReverseWithConflict = NewIntegrationTest(NewIntegrationTestArgs{
t.ExpectPopup().Alert().
Title(Equals("Error")).
Content(Contains("Applied patch to 'file1' with conflicts.").
- DoesNotContain("Applied patch to 'file2' cleanly.")).
+ Contains("Applied patch to 'file2' cleanly.")).
Confirm()
t.Views().Files().
@@ -79,6 +79,7 @@ var ApplyInReverseWithConflict = NewIntegrationTest(NewIntegrationTestArgs{
Focus().
Lines(
Contains("M").Contains("file1").IsSelected(),
+ Contains("M").Contains("file2"),
)
t.Views().Main().