mirror of
https://github.com/restic/restic.git
synced 2024-12-23 00:07:25 +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:
parent
d90efd7704
commit
e6a5801155
1 changed files with 1 additions and 1 deletions
|
@ -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)
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue