Skip to content

Commit 617ef38

Browse files
authored
Merge pull request #1291 from minimum2scp/fix/spec_docker_container_ip_address
Fixed container IP address in test
2 parents 9b82cc5 + 8a9b991 commit 617ef38

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

spec/spec_helper.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ def start_container(opts)
3939
set :docker_container_obj, container
4040

4141
## configure ssh
42-
set :host, container.json['NetworkSettings']['IPAddress']
42+
set :host, container.json.dig('NetworkSettings', 'Networks', 'bridge', 'IPAddress')
4343

4444
## wait for sshd in container start
4545
wait_container_port(22)

0 commit comments

Comments
 (0)