Skip to content

Commit b10c401

Browse files
misiek08janisz
authored andcommitted
Speed up consul tests (#214)
On OS X executing tests with request retry number set to 100 was taking too much time. Now it finishes in 25-60s which is acceptable.
1 parent 792754a commit b10c401

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

consul/consul_test.go

+2-2
Original file line numberDiff line numberDiff line change
@@ -168,7 +168,7 @@ func TestGetServices_RemovingFailingAgentsAndRetrying(t *testing.T) {
168168
// create client
169169
consul := ClientAtServer(server1)
170170
consul.config.Tag = "marathon"
171-
consul.config.RequestRetries = 100
171+
consul.config.RequestRetries = 10
172172

173173
// given
174174
server1.AddService("serviceA", "passing", []string{"public", "marathon"})
@@ -324,7 +324,7 @@ func TestGetAllServices_RemovingFailingAgentsAndRetrying(t *testing.T) {
324324
// create client
325325
consul := ClientAtServer(server1)
326326
consul.config.Tag = "marathon"
327-
consul.config.RequestRetries = 100
327+
consul.config.RequestRetries = 10
328328

329329
// add failing clients
330330
for i := uint32(2); i < consul.config.RequestRetries; i++ {

0 commit comments

Comments
 (0)