aboutsummaryrefslogtreecommitdiffstats
path: root/modules/git/blame_test.go
diff options
context:
space:
mode:
Diffstat (limited to 'modules/git/blame_test.go')
-rw-r--r--modules/git/blame_test.go5
1 files changed, 4 insertions, 1 deletions
diff --git a/modules/git/blame_test.go b/modules/git/blame_test.go
index 1752312d81..734d63ee14 100644
--- a/modules/git/blame_test.go
+++ b/modules/git/blame_test.go
@@ -5,6 +5,7 @@
package git
import (
+ "context"
"io/ioutil"
"testing"
@@ -93,8 +94,10 @@ func TestReadingBlameOutput(t *testing.T) {
if _, err = tempFile.WriteString(exampleBlame); err != nil {
panic(err)
}
+ ctx, cancel := context.WithCancel(context.Background())
+ defer cancel()
- blameReader, err := createBlameReader("", "cat", tempFile.Name())
+ blameReader, err := createBlameReader(ctx, "", "cat", tempFile.Name())
if err != nil {
panic(err)
}