Explorar o código

remove MaxDeliveryRetries from test file

Burke Libbey %!s(int64=12) %!d(string=hai) anos
pai
achega
7fe4be2f64
Modificáronse 1 ficheiros con 1 adicións e 2 borrados
  1. 1 2
      producer_test.go

+ 1 - 2
producer_test.go

@@ -243,8 +243,7 @@ func TestFailureRetry(t *testing.T) {
 		RequiredAcks:  WaitForLocal,
 		MaxBufferTime: 1000000, // "never"
 		// So that we flush after the 2nd message.
-		MaxBufferedBytes:   uint32((len(TestMessage) * 2) - 1),
-		MaxDeliveryRetries: 1,
+		MaxBufferedBytes: uint32((len(TestMessage) * 2) - 1),
 	})
 	if err != nil {
 		t.Fatal(err)