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

Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
(cherry picked from commit 05e18429cf50afbc40456a6f4eff1cfd6f1da707)
Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
Upstream-commit: 673f04f0b1afdb0a1f739b9a4a8b41ea1e015ea4
Component: engine
This commit is contained in:
Sebastiaan van Stijn
2018-11-08 14:00:14 +01:00
parent 0356a45a1c
commit 7f84ab28cd
@@ -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()))