fix typos
This commit is contained in:
parent
0e3407c7cc
commit
4792a11fd3
2 changed files with 4 additions and 4 deletions
|
@ -25,12 +25,12 @@ func TestStorageLocalErrors(t *testing.T) {
|
|||
assert.NoError(t, err)
|
||||
|
||||
t.Log("== FileNotExistErr ==")
|
||||
_, err = stor.Stat("nonexistant")
|
||||
_, err = stor.Stat("nonexistent")
|
||||
assert.Error(t, err)
|
||||
assert.Equal(t, ErrFileNotFound, err)
|
||||
|
||||
t.Log("== FolderNotExistErr ==")
|
||||
_, err = stor.ReadDir("nonexistant")
|
||||
_, err = stor.ReadDir("nonexistent")
|
||||
assert.Error(t, err)
|
||||
assert.Equal(t, ErrFolderNotFound, err)
|
||||
|
||||
|
|
|
@ -17,12 +17,12 @@ func TestStorageS3Errors(t *testing.T) {
|
|||
assert.NoError(t, err)
|
||||
|
||||
t.Log("== FileNotExistErr ==")
|
||||
_, err = stor.Stat("nonexistant")
|
||||
_, err = stor.Stat("nonexistent")
|
||||
assert.Error(t, err)
|
||||
assert.Equal(t, ErrFileNotFound, err)
|
||||
|
||||
t.Log("== FolderNotExistErr ==")
|
||||
_, err = stor.ReadDir("nonexistant")
|
||||
_, err = stor.ReadDir("nonexistent")
|
||||
assert.Error(t, err)
|
||||
assert.Equal(t, ErrFolderNotFound, err)
|
||||
|
||||
|
|
Loading…
Reference in a new issue