浏览代码

Merge pull request #772 from slaunay/bugfix/segv-on-client-coordinator-test

Stop test if client.Coordinator fails somehow
Evan Huus 9 年之前
父节点
当前提交
fd498173ae
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      functional_client_test.go

+ 1 - 1
functional_client_test.go

@@ -78,7 +78,7 @@ func TestFuncClientCoordinator(t *testing.T) {
 	for i := 0; i < 10; i++ {
 		broker, err := client.Coordinator(fmt.Sprintf("another_new_consumer_group_%d", i))
 		if err != nil {
-			t.Error(err)
+			t.Fatal(err)
 		}
 
 		if connected, err := broker.Connected(); !connected || err != nil {