Skip to content

Commit 53dc565

Browse files
authored
fix context in tests
1 parent d04bb1d commit 53dc565

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

modules/lfstransfer/backend/util_test.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
package backend
55

66
import (
7+
"context"
78
"testing"
89

910
"code.gitea.io/gitea/modules/setting"
@@ -46,7 +47,7 @@ func TestIsInternalLFSURL(t *testing.T) {
4647
{"http://localurl/api/internal/foo/bar", false},
4748
}
4849
for _, c := range cases {
49-
req := newInternalRequestLFS(t.Context(), c.url, "GET", nil, nil)
50+
req := newInternalRequestLFS(context.Background(), c.url, "GET", nil, nil)
5051
assert.Equal(t, c.expected, req != nil, c.url)
5152
assert.Equal(t, c.expected, isInternalLFSURL(c.url), c.url)
5253
}

0 commit comments

Comments
 (0)