Skip to content

Commit 30efab4

Browse files
committed
test: update
Signed-off-by: Carlos Alexandro Becker <[email protected]>
1 parent 00893dd commit 30efab4

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

url_test.go

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,6 @@
11
package main
22

3-
import (
4-
"context"
5-
"testing"
6-
)
3+
import "testing"
74

85
func TestURLParser(t *testing.T) {
96
for path, url := range map[string]string{
@@ -18,7 +15,7 @@ func TestURLParser(t *testing.T) {
1815
} {
1916
t.Run(path, func(t *testing.T) {
2017
t.Skip("test uses network, sometimes fails for no reason")
21-
got, err := readmeURL(context.Background(), path)
18+
got, err := readmeURL(t.Context(), path)
2219
if err != nil {
2320
t.Fatalf("expected no error, got %v", err)
2421
}

0 commit comments

Comments
 (0)