forked from TrueCloudLab/restic
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