Skip to content

Commit 9b83275

Browse files
authored
Merge pull request #459 from zendesk/dasch/fix-tests
Try to make the tests more reliable
2 parents b9dfe03 + 06bf4fd commit 9b83275

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Diff for: spec/test_cluster.rb

+1-1
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,7 @@ def start_kafka_containers
111111
end
112112

113113
def kafka_hosts
114-
@kafka_brokers.map {|kafka|
114+
@kafka_hosts ||= @kafka_brokers.map {|kafka|
115115
config = kafka.json.fetch("NetworkSettings").fetch("Ports")
116116
port = config.fetch("9092/tcp").first.fetch("HostPort")
117117
host = DOCKER_HOSTNAME

0 commit comments

Comments
 (0)