Skip to content

Commit

Permalink
debug behave.call
Browse files Browse the repository at this point in the history
  • Loading branch information
nicholasyang2022 committed Oct 10, 2024
1 parent 871563e commit 90183e2
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 1 deletion.
1 change: 1 addition & 0 deletions test/features/steps/behave_agent.py
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,7 @@ def write(self, __b) -> int:


def call(host: str, port: int, cmdline: str, user: typing.Optional[str] = None):
print(f'behave.call({host}, {port}')
family, type, proto, _, sockaddr = socket.getaddrinfo(host, port, type=socket.SOCK_STREAM)[0]
with socket.socket(family, type, proto) as s:
s.connect(sockaddr)
Expand Down
1 change: 0 additions & 1 deletion test/run-functional-tests
Original file line number Diff line number Diff line change
Expand Up @@ -210,7 +210,6 @@ deploy_ha_node() {

info "Deploying \"$node_name\"..."
docker run --restart always $docker_options $DOCKER_IMAGE &> /dev/null
sleep 31 # systemd takes 30s to bootup
for network in ${HA_NETWORK_ARRAY[@]};do
docker network connect $network $node_name
done
Expand Down

0 comments on commit 90183e2

Please sign in to comment.