aboutsummaryrefslogtreecommitdiffstats
path: root/integrations/pull_merge_test.go
diff options
context:
space:
mode:
Diffstat (limited to 'integrations/pull_merge_test.go')
-rw-r--r--integrations/pull_merge_test.go17
1 files changed, 15 insertions, 2 deletions
diff --git a/integrations/pull_merge_test.go b/integrations/pull_merge_test.go
index 57a9868678..8aded910d4 100644
--- a/integrations/pull_merge_test.go
+++ b/integrations/pull_merge_test.go
@@ -274,7 +274,13 @@ func TestCantMergeUnrelated(t *testing.T) {
stdin := bytes.NewBufferString("Unrelated File")
var stdout strings.Builder
- err = git.NewCommand(git.DefaultContext, "hash-object", "-w", "--stdin").RunInDirFullPipeline(path, &stdout, nil, stdin)
+ err = git.NewCommand(git.DefaultContext, "hash-object", "-w", "--stdin").RunWithContext(&git.RunContext{
+ Timeout: -1,
+ Dir: path,
+ Stdin: stdin,
+ Stdout: &stdout,
+ })
+
assert.NoError(t, err)
sha := strings.TrimSpace(stdout.String())
@@ -301,7 +307,14 @@ func TestCantMergeUnrelated(t *testing.T) {
_, _ = messageBytes.WriteString("\n")
stdout.Reset()
- err = git.NewCommand(git.DefaultContext, "commit-tree", treeSha).RunInDirTimeoutEnvFullPipeline(env, -1, path, &stdout, nil, messageBytes)
+ err = git.NewCommand(git.DefaultContext, "commit-tree", treeSha).
+ RunWithContext(&git.RunContext{
+ Env: env,
+ Timeout: -1,
+ Dir: path,
+ Stdin: messageBytes,
+ Stdout: &stdout,
+ })
assert.NoError(t, err)
commitSha := strings.TrimSpace(stdout.String())