From da8f384324fb91e7376ce4df5d82936512cde24c Mon Sep 17 00:00:00 2001 From: Evgenii Stratonikov Date: Wed, 30 Aug 2023 17:10:21 +0300 Subject: [PATCH] [#668] shard/test: Fix typo in `existence` Signed-off-by: Evgenii Stratonikov --- pkg/local_object_storage/shard/gc_internal_test.go | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/pkg/local_object_storage/shard/gc_internal_test.go b/pkg/local_object_storage/shard/gc_internal_test.go index c258b6c9..9a4f5202 100644 --- a/pkg/local_object_storage/shard/gc_internal_test.go +++ b/pkg/local_object_storage/shard/gc_internal_test.go @@ -116,13 +116,13 @@ func Test_ObjectNotFoundIfNotDeletedFromMetabase(t *testing.T) { storageID, err := sh.metaBase.StorageID(context.Background(), metaStIDPrm) require.NoError(t, err, "failed to get storage ID") - //check existance in blobstore + //check existence in blobstore var bsExisted common.ExistsPrm bsExisted.Address = addr bsExisted.StorageID = storageID.StorageID() exRes, err := sh.blobStor.Exists(context.Background(), bsExisted) - require.NoError(t, err, "failed to check blobstore existance") - require.True(t, exRes.Exists, "invalid blobstore existance result") + require.NoError(t, err, "failed to check blobstore existence") + require.True(t, exRes.Exists, "invalid blobstore existence result") //drop from blobstor var bsDeletePrm common.DeletePrm @@ -131,10 +131,10 @@ func Test_ObjectNotFoundIfNotDeletedFromMetabase(t *testing.T) { _, err = sh.blobStor.Delete(context.Background(), bsDeletePrm) require.NoError(t, err, "failed to delete from blobstore") - //check existance in blobstore + //check existence in blobstore exRes, err = sh.blobStor.Exists(context.Background(), bsExisted) - require.NoError(t, err, "failed to check blobstore existance") - require.False(t, exRes.Exists, "invalid blobstore existance result") + require.NoError(t, err, "failed to check blobstore existence") + require.False(t, exRes.Exists, "invalid blobstore existence result") //get should return object not found _, err = sh.Get(context.Background(), getPrm)