Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
| ... | ... |
@@ -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 |
|