mirror of
https://github.com/gofiber/storage.git
synced 2025-10-28 18:41:56 +08:00
updated test for key not in get requests
This commit is contained in:
@@ -48,6 +48,17 @@ func Test_Get_Empty_Key(t *testing.T) {
|
|||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
func Test_Get_Not_Exists_Key(t *testing.T) {
|
||||||
|
var (
|
||||||
|
key = "not-exists"
|
||||||
|
)
|
||||||
|
|
||||||
|
_, err := testStore.Get(key)
|
||||||
|
require.Error(t, err)
|
||||||
|
require.EqualError(t, err, "The specified key does not exist.")
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
func Test_Get_Not_Exists_Bucket(t *testing.T) {
|
func Test_Get_Not_Exists_Bucket(t *testing.T) {
|
||||||
var (
|
var (
|
||||||
key = "john"
|
key = "john"
|
||||||
|
|||||||
Reference in New Issue
Block a user