s3: fix potential crash in integration tests
This commit is contained in:
parent
12761b3058
commit
aca7d0fd22
1 changed files with 2 additions and 1 deletions
|
@ -322,7 +322,8 @@ func (f *Fs) InternalTestVersions(t *testing.T) {
|
||||||
confPath := strings.Replace(newPath, ":", ",versions:", 1)
|
confPath := strings.Replace(newPath, ":", ",versions:", 1)
|
||||||
fNew, err := cache.Get(ctx, confPath)
|
fNew, err := cache.Get(ctx, confPath)
|
||||||
// This should return pointing to a file
|
// 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
|
// With the directory the directory above
|
||||||
assert.Equal(t, dirName, path.Base(fs.ConfigString(fNew)))
|
assert.Equal(t, dirName, path.Base(fs.ConfigString(fNew)))
|
||||||
})
|
})
|
||||||
|
|
Loading…
Add table
Reference in a new issue