reduce logging in bucket replication in retry scenarios (#17820)

This commit is contained in:
Harshavardhana
2023-08-08 13:27:40 -07:00
committed by GitHub
parent b6b6d6e8d8
commit b732a673dc
3 changed files with 25 additions and 31 deletions

View File

@@ -18,6 +18,7 @@
package cmd
import (
"context"
"testing"
"github.com/minio/minio/internal/bucket/replication"
@@ -183,7 +184,7 @@ var parseReplicationDecisionTest = []struct {
func TestParseReplicateDecision(t *testing.T) {
for i, test := range parseReplicationDecisionTest {
dsc, err := parseReplicateDecision(test.expDsc.String())
dsc, err := parseReplicateDecision(context.Background(), "bucket", test.expDsc.String())
if err != nil {
if test.expErr != err {
t.Errorf("Test%d (%s): Expected parse error got %t , want %t", i+1, test.name, err, test.expErr)