Skip to content

Commit

Permalink
Increase waiting time in tests
Browse files Browse the repository at this point in the history
Adapt to async event processing in rabbitmq/rabbitmq-management#236
  • Loading branch information
acogoluegnes committed Nov 25, 2016
1 parent 7f1a550 commit 965f3ce
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/test/groovy/com/rabbitmq/http/client/ClientSpec.groovy
Original file line number Diff line number Diff line change
Expand Up @@ -190,6 +190,7 @@ class ClientSpec extends Specification {
assert conn.isOpen()

when: "client closes the connection"
awaitEventPropagation()
final xs = client.getConnections()
xs.each({ client.closeConnection(it.name) })

Expand Down Expand Up @@ -1290,6 +1291,6 @@ class ClientSpec extends Specification {
*/
protected void awaitEventPropagation() {
// same number as used in rabbit-hole test suite. Works OK.
Thread.sleep(1000)
Thread.sleep(5050)
}
}

1 comment on commit 965f3ce

@michaelklishin
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is only necessary if configuration changes from https://github.com/rabbitmq/hop/blob/master/bin/before_build.sh are not applied.

Please sign in to comment.