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.
This commit is contained in:
Michael Eischer 2021-08-15 18:16:17 +02:00
parent d90efd7704
commit e6a5801155
1 changed files with 1 additions and 1 deletions

View File

@ -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)
}