1
0
Fork 0
mirror of https://github.com/moby/moby.git synced 2022-11-09 12:21:53 -05:00

Integration test: use filepath.Join() to make path cross-platform

Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
This commit is contained in:
Sebastiaan van Stijn 2018-11-02 09:50:50 +01:00
parent 8e8cac8263
commit 05e18429cf
No known key found for this signature in database
GPG key ID: 76698F39D527CE8C

View file

@ -2,7 +2,7 @@ package volume
import (
"context"
"fmt"
"path/filepath"
"strings"
"testing"
"time"
@ -37,7 +37,7 @@ func TestVolumesCreateAndList(t *testing.T) {
Driver: "local",
Scope: "local",
Name: name,
Mountpoint: fmt.Sprintf("%s/volumes/%s/_data", testEnv.DaemonInfo.DockerRootDir, name),
Mountpoint: filepath.Join(testEnv.DaemonInfo.DockerRootDir, "volumes", name, "_data"),
}
assert.Check(t, is.DeepEqual(vol, expected, cmpopts.EquateEmpty()))