Skip to content

Commit 5d77b60

Browse files
committed
update test_ssh_instance_provisioning
1 parent 9e98e9f commit 5d77b60

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

tests/integration/ssh/test_plugin_ssh.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99
COMMAND_JSON_OUTPUT,
1010
get_random_text,
1111
wait_for_condition,
12+
exec_failing_test_command,
1213
)
1314

1415
TEST_REGION = "us-southeast"
@@ -83,9 +84,9 @@ def test_help():
8384

8485
@pytest.mark.skipif(platform == "win32", reason="Test N/A on Windows")
8586
def test_ssh_instance_provisioning(target_instance: Dict[str, Any]):
86-
process = exec_test_command(BASE_CMD + ["root@" + target_instance["label"]])
87+
process = exec_failing_test_command(BASE_CMD + ["root@" + target_instance["label"]], expected_code=2)
8788
assert process.returncode == 2
88-
output = process.stdout.decode()
89+
output = process.stderr.decode()
8990

9091
assert "is not running" in output
9192

0 commit comments

Comments
 (0)