2
2
mirror of https://github.com/octoleo/restic.git synced 2025-01-08 09:08:12 +00:00

fs: use non existing vss path to avoid flaky test

The test used \\?\GLOBALROOT\Device\HarddiskVolumeShadowCopy1 , which if
it exists and supports extended attributes can cause the test to fail.
This commit is contained in:
Michael Eischer 2024-11-01 15:38:03 +01:00
parent 51cd1c847b
commit b3b173a47c

View File

@ -453,15 +453,15 @@ func TestPrepareVolumeName(t *testing.T) {
}, },
{ {
name: "Volume Shadow Copy root", name: "Volume Shadow Copy root",
path: `\\?\GLOBALROOT\Device\HarddiskVolumeShadowCopy1`, path: `\\?\GLOBALROOT\Device\HarddiskVolumeShadowCopy5555`,
expectedVolume: `\\?\GLOBALROOT\Device\HarddiskVolumeShadowCopy1`, expectedVolume: `\\?\GLOBALROOT\Device\HarddiskVolumeShadowCopy5555`,
expectError: false, expectError: false,
expectedEASupported: false, expectedEASupported: false,
}, },
{ {
name: "Volume Shadow Copy path", name: "Volume Shadow Copy path",
path: `\\?\GLOBALROOT\Device\HarddiskVolumeShadowCopy1\Users\test`, path: `\\?\GLOBALROOT\Device\HarddiskVolumeShadowCopy5555\Users\test`,
expectedVolume: `\\?\GLOBALROOT\Device\HarddiskVolumeShadowCopy1`, expectedVolume: `\\?\GLOBALROOT\Device\HarddiskVolumeShadowCopy5555`,
expectError: false, expectError: false,
expectedEASupported: false, expectedEASupported: false,
}, },