From 30ba85bc6779befed8e27789319daf13df2fc95c Mon Sep 17 00:00:00 2001 From: Harshavardhana Date: Tue, 2 Nov 2021 08:11:20 -0700 Subject: [PATCH] no need to write storageClass globally (#13555) fixes #13548 --- cmd/erasure-object_test.go | 28 ---------------------------- 1 file changed, 28 deletions(-) diff --git a/cmd/erasure-object_test.go b/cmd/erasure-object_test.go index a760a6a8a..29b6adc71 100644 --- a/cmd/erasure-object_test.go +++ b/cmd/erasure-object_test.go @@ -202,13 +202,6 @@ func TestErasureDeleteObjectsErasureSet(t *testing.T) { } func TestErasureDeleteObjectDiskNotFound(t *testing.T) { - restoreGlobalStorageClass := globalStorageClass - defer func() { - globalStorageClass = restoreGlobalStorageClass - }() - - globalStorageClass = storageclass.Config{} - ctx, cancel := context.WithCancel(context.Background()) defer cancel() @@ -278,13 +271,6 @@ func TestErasureDeleteObjectDiskNotFound(t *testing.T) { } func TestErasureDeleteObjectDiskNotFoundErasure4(t *testing.T) { - restoreGlobalStorageClass := globalStorageClass - defer func() { - globalStorageClass = restoreGlobalStorageClass - }() - - globalStorageClass = storageclass.Config{} - ctx, cancel := context.WithCancel(context.Background()) defer cancel() @@ -345,13 +331,6 @@ func TestErasureDeleteObjectDiskNotFoundErasure4(t *testing.T) { } func TestErasureDeleteObjectDiskNotFoundErr(t *testing.T) { - restoreGlobalStorageClass := globalStorageClass - defer func() { - globalStorageClass = restoreGlobalStorageClass - }() - - globalStorageClass = storageclass.Config{} - ctx, cancel := context.WithCancel(context.Background()) defer cancel() @@ -807,13 +786,6 @@ func TestObjectQuorumFromMeta(t *testing.T) { } func testObjectQuorumFromMeta(obj ObjectLayer, instanceType string, dirs []string, t TestErrHandler) { - restoreGlobalStorageClass := globalStorageClass - defer func() { - globalStorageClass = restoreGlobalStorageClass - }() - - globalStorageClass = storageclass.Config{} - bucket := getRandomBucketName() var opts ObjectOptions