Skip to content

Commit d7c7f2a

Browse files
committed
fix: tests
1 parent f163603 commit d7c7f2a

2 files changed

Lines changed: 1 addition & 2 deletions

File tree

juju/machine.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -154,9 +154,9 @@ async def ssh(
154154
"""
155155
if proxy:
156156
raise NotImplementedError('proxy option is not implemented')
157-
address = self.dns_name
158157
if wait_for_active:
159158
await block_until(lambda: self.addresses, timeout=timeout)
159+
address = self.dns_name
160160
destination = "{}@{}".format(user, address)
161161
_, id_path = juju_ssh_key_paths()
162162
cmd = [

tests/integration/test_machine.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,6 @@ async def test_scp(event_loop):
7171
async def test_machine_ssh():
7272
async with base.CleanModel() as model:
7373
machine: Machine = await model.add_machine()
74-
await machine.wait()
7574
out = await machine.ssh("echo hello world!")
7675

7776
assert out == "hello world!\n"

0 commit comments

Comments
 (0)