From 3d598445e335031f34003b856c97d9c24ef6139d Mon Sep 17 00:00:00 2001 From: mstgnz Date: Fri, 25 Aug 2023 19:57:39 +0300 Subject: [PATCH] updated test for key not in get requests --- minio/minio_test.go | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/minio/minio_test.go b/minio/minio_test.go index 0a6896d5..c5a00cb9 100644 --- a/minio/minio_test.go +++ b/minio/minio_test.go @@ -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) { var ( key = "john"