diff options
Diffstat (limited to 'modules/git/command_race_test.go')
-rw-r--r-- | modules/git/command_race_test.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/modules/git/command_race_test.go b/modules/git/command_race_test.go index 2c975860dd..9eb29fcfab 100644 --- a/modules/git/command_race_test.go +++ b/modules/git/command_race_test.go @@ -19,7 +19,7 @@ func TestRunWithContextNoTimeout(t *testing.T) { // 'git --version' does not block so it must be finished before the timeout triggered. cmd := NewCommand(context.Background(), "--version") for i := 0; i < maxLoops; i++ { - if err := cmd.RunWithContext(&RunContext{}); err != nil { + if err := cmd.Run(&RunOpts{}); err != nil { t.Fatal(err) } } @@ -31,7 +31,7 @@ func TestRunWithContextTimeout(t *testing.T) { // 'git hash-object --stdin' blocks on stdin so we can have the timeout triggered. cmd := NewCommand(context.Background(), "hash-object", "--stdin") for i := 0; i < maxLoops; i++ { - if err := cmd.RunWithContext(&RunContext{Timeout: 1 * time.Millisecond}); err != nil { + if err := cmd.Run(&RunOpts{Timeout: 1 * time.Millisecond}); err != nil { if err != context.DeadlineExceeded { t.Fatalf("Testing %d/%d: %v", i, maxLoops, err) } |