Skip to content

Commit 7f1e72d

Browse files
author
Eidmantas Ivanauskas
committed
test: disable batching in GitHub App creds test to keep immediate commit semantics
1 parent 1e537c8 commit 7f1e72d

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

pkg/argocd/update_test.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -154,6 +154,9 @@ func Test_UpdateApplication(t *testing.T) {
154154
},
155155
Images: *parseImageList(annotations),
156156
}
157+
// Disable batching to preserve legacy immediate write-back semantics for this test
158+
_ = os.Setenv("GIT_BATCH_DISABLE", "true")
159+
defer os.Unsetenv("GIT_BATCH_DISABLE")
157160
res := UpdateApplication(&UpdateConfiguration{
158161
NewRegFN: mockClientFn,
159162
ArgoClient: &argoClient,

0 commit comments

Comments
 (0)