Browse code

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

Signed-off-by: Sebastiaan van Stijn <github@gone.nl>

Sebastiaan van Stijn authored on 2018/11/02 17:50:50
Showing 1 changed files
... ...
@@ -2,7 +2,7 @@ package volume
2 2
 
3 3
 import (
4 4
 	"context"
5
-	"fmt"
5
+	"path/filepath"
6 6
 	"strings"
7 7
 	"testing"
8 8
 	"time"
... ...
@@ -37,7 +37,7 @@ func TestVolumesCreateAndList(t *testing.T) {
37 37
 		Driver:     "local",
38 38
 		Scope:      "local",
39 39
 		Name:       name,
40
-		Mountpoint: fmt.Sprintf("%s/volumes/%s/_data", testEnv.DaemonInfo.DockerRootDir, name),
40
+		Mountpoint: filepath.Join(testEnv.DaemonInfo.DockerRootDir, "volumes", name, "_data"),
41 41
 	}
42 42
 	assert.Check(t, is.DeepEqual(vol, expected, cmpopts.EquateEmpty()))
43 43