From e6a5801155325959c57c9779e2f66e8594bec86c Mon Sep 17 00:00:00 2001 From: Michael Eischer Date: Sun, 15 Aug 2021 18:16:17 +0200 Subject: [PATCH] rest: Fix test backend url The rest config normally uses prepareURL to sanitize URLs and ensures that the URL ends with a slash. However, the test used an URL without a trailing slash, which after the rest server changes causes test failures. --- internal/backend/rest/rest_test.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal/backend/rest/rest_test.go b/internal/backend/rest/rest_test.go index 3f6859626..45aeabb99 100644 --- a/internal/backend/rest/rest_test.go +++ b/internal/backend/rest/rest_test.go @@ -50,7 +50,7 @@ func runRESTServer(ctx context.Context, t testing.TB, dir string) (*url.URL, fun return nil, nil } - url, err := url.Parse("http://localhost:8000/restic-test") + url, err := url.Parse("http://localhost:8000/restic-test/") if err != nil { t.Fatal(err) }