We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 00893dd commit 30efab4Copy full SHA for 30efab4
url_test.go
@@ -1,9 +1,6 @@
1
package main
2
3
-import (
4
- "context"
5
- "testing"
6
-)
+import "testing"
7
8
func TestURLParser(t *testing.T) {
9
for path, url := range map[string]string{
@@ -18,7 +15,7 @@ func TestURLParser(t *testing.T) {
18
15
} {
19
16
t.Run(path, func(t *testing.T) {
20
17
t.Skip("test uses network, sometimes fails for no reason")
21
- got, err := readmeURL(context.Background(), path)
+ got, err := readmeURL(t.Context(), path)
22
if err != nil {
23
t.Fatalf("expected no error, got %v", err)
24
}
0 commit comments