Skip to content

Commit e8570c9

Browse files
committed
fix(tests): Override DOS device path in cache
1 parent 1ccb7b3 commit e8570c9

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

pkg/fs/dev_test.go

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,9 +23,10 @@ package fs
2323

2424
import (
2525
"fmt"
26-
"github.com/stretchr/testify/assert"
2726
"strings"
2827
"testing"
28+
29+
"github.com/stretchr/testify/assert"
2930
)
3031

3132
var drives = []string{
@@ -74,6 +75,7 @@ func TestConvertDosDevice(t *testing.T) {
7475
assert.Contains(t, files, filename)
7576

7677
m.(*mapper).cache["\\Device\\HarddiskVolume1"] = "C:"
78+
m.(*mapper).cache["\\Device\\HarddiskVolume5"] = "\\Device\\HarddiskVolume5"
7779
m.(*mapper).sysroot = "C:\\Windows"
7880

7981
var tests = []struct {

0 commit comments

Comments
 (0)