1
0
Fork 0
mirror of https://github.com/restic/restic.git synced 2024-12-22 15:57:07 +00:00

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

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