浏览代码

fix misleading example for cluster admin

fixes https://github.com/Shopify/sarama/issues/1238
Diego Alvarez 5 年之前
父节点
当前提交
9895e8f694
共有 1 个文件被更改,包括 2 次插入2 次删除
  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)