Skip to content

Commit 86eb271

Browse files
Try a bigger delay before starting to use ibm mq
1 parent baa53fa commit 86eb271

File tree

2 files changed

+3
-4
lines changed

2 files changed

+3
-4
lines changed

deps/amqp10_client/test/ibmmq_ct_helpers.erl

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -45,9 +45,7 @@ start_ibmmq_server(Config) ->
4545
wait_for_ibmmq_nodes(Config) ->
4646
Hostname = ?config(rmq_hostname, Config),
4747
Ports = rabbit_ct_broker_helpers:get_node_configs(Config, tcp_port_amqp),
48-
wait_for_ibmmq_ports(Config, Hostname, Ports),
49-
timer:sleep(500),
50-
Config.
48+
wait_for_ibmmq_ports(Config, Hostname, Ports).
5149

5250
wait_for_ibmmq_ports(Config, Hostname, [Port | Rest]) ->
5351
ct:log("Waiting for IBM MQ on port ~b", [Port]),

deps/amqp10_client/test/system_SUITE_data/ibmmq_runner

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,8 @@ invoke_start(){
7373
docker exec ibmmq bash -c 'echo "START SERVICE(SYSTEM.AMQP.SERVICE)" | /opt/mqm/bin/runmqsc QM1'
7474
docker exec ibmmq bash -c 'echo "START CHANNEL(SYSTEM.DEF.AMQP)" | /opt/mqm/bin/runmqsc QM1'
7575
wait_for_message ibmmq "The Server 'SYSTEM.AMQP.SERVICE' has started"
76-
sleep 5
76+
sleep 10
77+
print "Waited 10 seconds for container to start"
7778
}
7879

7980
invoke_stop(){

0 commit comments

Comments
 (0)