From 311ba833d50c84c42b0609d481940372d127e94a Mon Sep 17 00:00:00 2001 From: rabbitstack Date: Sun, 1 Feb 2026 16:59:44 +0100 Subject: [PATCH] fix(tests): Override DOS device path in cache --- pkg/fs/dev_test.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/pkg/fs/dev_test.go b/pkg/fs/dev_test.go index c993297fe..972bdba1e 100644 --- a/pkg/fs/dev_test.go +++ b/pkg/fs/dev_test.go @@ -23,9 +23,10 @@ package fs import ( "fmt" - "github.com/stretchr/testify/assert" "strings" "testing" + + "github.com/stretchr/testify/assert" ) var drives = []string{ @@ -74,6 +75,7 @@ func TestConvertDosDevice(t *testing.T) { assert.Contains(t, files, filename) m.(*mapper).cache["\\Device\\HarddiskVolume1"] = "C:" + m.(*mapper).cache["\\Device\\HarddiskVolume5"] = "\\Device\\HarddiskVolume5" m.(*mapper).sysroot = "C:\\Windows" var tests = []struct {