From 30efab4f4610b7ed2fbeb8bacf3a22ab1e82d66d Mon Sep 17 00:00:00 2001 From: Carlos Alexandro Becker Date: Tue, 21 Oct 2025 09:56:51 -0300 Subject: [PATCH] test: update Signed-off-by: Carlos Alexandro Becker --- url_test.go | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/url_test.go b/url_test.go index a23c1b1..8517f65 100644 --- a/url_test.go +++ b/url_test.go @@ -1,9 +1,6 @@ package main -import ( - "context" - "testing" -) +import "testing" func TestURLParser(t *testing.T) { for path, url := range map[string]string{ @@ -18,7 +15,7 @@ func TestURLParser(t *testing.T) { } { t.Run(path, func(t *testing.T) { t.Skip("test uses network, sometimes fails for no reason") - got, err := readmeURL(context.Background(), path) + got, err := readmeURL(t.Context(), path) if err != nil { t.Fatalf("expected no error, got %v", err) }