mirror of
https://github.com/restic/restic.git
synced 2024-12-22 07:43:03 +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:
parent
51cd1c847b
commit
b3b173a47c
1 changed files with 4 additions and 4 deletions
|
@ -453,15 +453,15 @@ func TestPrepareVolumeName(t *testing.T) {
|
|||
},
|
||||
{
|
||||
name: "Volume Shadow Copy root",
|
||||
path: `\\?\GLOBALROOT\Device\HarddiskVolumeShadowCopy1`,
|
||||
expectedVolume: `\\?\GLOBALROOT\Device\HarddiskVolumeShadowCopy1`,
|
||||
path: `\\?\GLOBALROOT\Device\HarddiskVolumeShadowCopy5555`,
|
||||
expectedVolume: `\\?\GLOBALROOT\Device\HarddiskVolumeShadowCopy5555`,
|
||||
expectError: false,
|
||||
expectedEASupported: false,
|
||||
},
|
||||
{
|
||||
name: "Volume Shadow Copy path",
|
||||
path: `\\?\GLOBALROOT\Device\HarddiskVolumeShadowCopy1\Users\test`,
|
||||
expectedVolume: `\\?\GLOBALROOT\Device\HarddiskVolumeShadowCopy1`,
|
||||
path: `\\?\GLOBALROOT\Device\HarddiskVolumeShadowCopy5555\Users\test`,
|
||||
expectedVolume: `\\?\GLOBALROOT\Device\HarddiskVolumeShadowCopy5555`,
|
||||
expectError: false,
|
||||
expectedEASupported: false,
|
||||
},
|
||||
|
|
Loading…
Reference in a new issue