1
mirror of https://github.com/rclone/rclone synced 2024-11-26 04:07:22 +01:00

s3: fix potential crash in integration tests

This commit is contained in:
Nick Craig-Wood 2023-04-28 12:04:56 +01:00
parent 12761b3058
commit aca7d0fd22

View File

@ -322,7 +322,8 @@ func (f *Fs) InternalTestVersions(t *testing.T) {
confPath := strings.Replace(newPath, ":", ",versions:", 1)
fNew, err := cache.Get(ctx, confPath)
// This should return pointing to a file
assert.Equal(t, fs.ErrorIsFile, err)
require.Equal(t, fs.ErrorIsFile, err)
require.NotNil(t, fNew)
// With the directory the directory above
assert.Equal(t, dirName, path.Base(fs.ConfigString(fNew)))
})