forked from TrueCloudLab/restic
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",
|
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,
|
||||||
},
|
},
|
||||||
|
|
Loading…
Add table
Reference in a new issue