Skip to content

Commit

Permalink
Yolo
Browse files Browse the repository at this point in the history
  • Loading branch information
wvanbergen committed Apr 9, 2015
1 parent 5f3ea66 commit e1d6bcb
Showing 1 changed file with 9 additions and 6 deletions.
15 changes: 9 additions & 6 deletions functional_client_test.go
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
package sarama

import (
"fmt"
"testing"
"time"
)
Expand Down Expand Up @@ -88,13 +89,15 @@ func TestFuncClientCoordinator(t *testing.T) {
t.Fatal(err)
}

broker, err = client.Coordinator("another_new_consumer_group")
if err != nil {
t.Error(err)
}
for i := 0; i < 10; i++ {
broker, err = client.Coordinator(fmt.Sprintf("another_new_consumer_group_%d", i))
if err != nil {
t.Error(err)
}

if connected, err := broker.Connected(); !connected || err != nil {
t.Errorf("Expected to coordinator %s broker to be properly connected.", broker.Addr())
if connected, err := broker.Connected(); !connected || err != nil {
t.Errorf("Expected to coordinator %s broker to be properly connected.", broker.Addr())
}
}

safeClose(t, client)
Expand Down

0 comments on commit e1d6bcb

Please sign in to comment.