fix typos

This commit is contained in:
Shane C. 2024-11-21 12:12:05 -05:00
parent 0e3407c7cc
commit 4792a11fd3
Signed by: Shane C.
GPG key ID: E46B5FEA35B22FF9
2 changed files with 4 additions and 4 deletions

View file

@ -25,12 +25,12 @@ func TestStorageLocalErrors(t *testing.T) {
assert.NoError(t, err) assert.NoError(t, err)
t.Log("== FileNotExistErr ==") t.Log("== FileNotExistErr ==")
_, err = stor.Stat("nonexistant") _, err = stor.Stat("nonexistent")
assert.Error(t, err) assert.Error(t, err)
assert.Equal(t, ErrFileNotFound, err) assert.Equal(t, ErrFileNotFound, err)
t.Log("== FolderNotExistErr ==") t.Log("== FolderNotExistErr ==")
_, err = stor.ReadDir("nonexistant") _, err = stor.ReadDir("nonexistent")
assert.Error(t, err) assert.Error(t, err)
assert.Equal(t, ErrFolderNotFound, err) assert.Equal(t, ErrFolderNotFound, err)

View file

@ -17,12 +17,12 @@ func TestStorageS3Errors(t *testing.T) {
assert.NoError(t, err) assert.NoError(t, err)
t.Log("== FileNotExistErr ==") t.Log("== FileNotExistErr ==")
_, err = stor.Stat("nonexistant") _, err = stor.Stat("nonexistent")
assert.Error(t, err) assert.Error(t, err)
assert.Equal(t, ErrFileNotFound, err) assert.Equal(t, ErrFileNotFound, err)
t.Log("== FolderNotExistErr ==") t.Log("== FolderNotExistErr ==")
_, err = stor.ReadDir("nonexistant") _, err = stor.ReadDir("nonexistent")
assert.Error(t, err) assert.Error(t, err)
assert.Equal(t, ErrFolderNotFound, err) assert.Equal(t, ErrFolderNotFound, err)