Skip to content

Commit

Permalink
Integration test: use filepath.Join() to make path cross-platform
Browse files Browse the repository at this point in the history
Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
  • Loading branch information
thaJeztah committed Nov 2, 2018
1 parent 8e8cac8 commit 05e1842
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions integration/volume/volume_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ package volume

import (
"context"
"fmt"
"path/filepath"
"strings"
"testing"
"time"
Expand Down Expand Up @@ -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()))

Expand Down

0 comments on commit 05e1842

Please sign in to comment.