Browse Source

fix misleading example for cluster admin

fixes https://github.com/Shopify/sarama/issues/1238
Diego Alvarez 5 năm trước cách đây
mục cha
commit
9895e8f694
1 tập tin đã thay đổi với 2 bổ sung2 xóa
  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)