diff options
| author | jwijenbergh <jeroenwijenbergh@protonmail.com> | 2023-04-12 22:57:29 +0200 |
|---|---|---|
| committer | Jeroen Wijenbergh <46386452+jwijenbergh@users.noreply.github.com> | 2023-09-25 09:43:37 +0200 |
| commit | ee95eb45708e1fa766a63866d26d05d13f23e8c9 (patch) | |
| tree | 26cedf30f98381746004a9b2e003bb968c6ef182 /internal/http/http_test.go | |
| parent | 2898723cbe9c2bd65995dc22d080c3067ebdf4b7 (diff) | |
HTTP: Pass context around and optionally trail path in url
Diffstat (limited to 'internal/http/http_test.go')
| -rw-r--r-- | internal/http/http_test.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/internal/http/http_test.go b/internal/http/http_test.go index 49df931..8c2ae0f 100644 --- a/internal/http/http_test.go +++ b/internal/http/http_test.go @@ -5,7 +5,7 @@ import ( ) func TestEnsureValidURL(t *testing.T) { - _, validErr := EnsureValidURL("%notvalid%") + _, validErr := EnsureValidURL("%notvalid%", true) if validErr == nil { t.Fatal("Got nil error, want: non-nil") @@ -27,7 +27,7 @@ func TestEnsureValidURL(t *testing.T) { } for k, v := range testCases { - valid, validErr := EnsureValidURL(k) + valid, validErr := EnsureValidURL(k, true) if validErr != nil { t.Fatalf("Got: %v, want: nil", validErr) } |
