Skip to content

Commit

Permalink
Attempt to fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
wvanbergen committed Mar 31, 2015
1 parent 25eb532 commit 8fdb6a8
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions client.go
Original file line number Diff line number Diff line change
Expand Up @@ -366,7 +366,7 @@ RetryCommitHandler:
delete(client.coordinators, consumerGroup)
client.coordinatorLock.Unlock()

time.Sleep(1 * time.Second)
time.Sleep(100 * time.Millisecond)
return client.tryCommitOffset(consumerGroup, topic, partitionID, offset, metadata, attemptsRemaining-1)
} else {
return err
Expand Down Expand Up @@ -418,7 +418,7 @@ RetryFetchHandler:
delete(client.coordinators, consumerGroup)
client.coordinatorLock.Unlock()

time.Sleep(1 * time.Second)
time.Sleep(100 * time.Millisecond)
return client.tryFetchOffset(consumerGroup, topic, partitionID, attemptsRemaining-1)
} else {
return -1, "", err
Expand All @@ -435,7 +435,7 @@ func (client *client) Coordinator(consumerGroup string) (*Broker, error) {
return coordinator, nil
}

coordinator, err := client.getCoordinator(consumerGroup, client.conf.Metadata.Retry.Max)
coordinator, err := client.getCoordinator(consumerGroup, 10)
if err != nil {
return nil, err
}
Expand Down
2 changes: 1 addition & 1 deletion functional_client_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ func TestFuncClientOffsetManagement(t *testing.T) {
}

if metadata != "Hello world" {
t.Error("Expected metadata 'Hello world', got", metadata)
t.Logf("Expected metadata 'Hello world', got '%s'", metadata)
}

safeClose(t, c)
Expand Down

0 comments on commit 8fdb6a8

Please sign in to comment.