Explorar o código

fix misleading example for cluster admin

fixes https://github.com/Shopify/sarama/issues/1238
Diego Alvarez %!s(int64=6) %!d(string=hai) anos
pai
achega
9895e8f694
Modificáronse 1 ficheiros con 2 adicións e 2 borrados
  1. 2 2
      admin_test.go

+ 2 - 2
admin_test.go

@@ -615,8 +615,8 @@ func TestClusterAdminAlterConfig(t *testing.T) {
 
 	var value string
 	entries := make(map[string]*string)
-	value = "3"
-	entries["ReplicationFactor"] = &value
+	value = "60000"
+	entries["retention.ms"] = &value
 	err = admin.AlterConfig(TopicResource, "my_topic", entries, false)
 	if err != nil {
 		t.Fatal(err)