fix truncate test cases on Windows

This commit is contained in:
Nicola Murino
2020-08-20 14:44:38 +02:00
parent f41ce6619f
commit 7381a867ba
3 changed files with 5 additions and 2 deletions

View File

@@ -530,7 +530,7 @@ func TestSetStat(t *testing.T) {
})
assert.Error(t, err)
// truncate
err = c.SetStat(filepath.Join(user.GetHomeDir(), "missing"), "/missing", &StatAttributes{
err = c.SetStat(filepath.Join(user.GetHomeDir(), "/missing/missing"), "/missing/missing", &StatAttributes{
Size: 1,
Flags: StatAttrSize,
})