Skip to content

Commit e7791a2

Browse files
author
Dan
committed
Updated run with user test
1 parent 19ac84b commit e7791a2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tests/test_pssh_client.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -982,7 +982,7 @@ def test_run_command_user_sudo(self):
982982
self.client.join(output)
983983
stderr = list(output[self.host].stderr)
984984
self.assertTrue(len(stderr) > 0)
985-
self.assertTrue(user in stderr[0])
985+
self.assertTrue(output[self.host].exit_code == 1)
986986

987987
def test_run_command_shell(self):
988988
output = self.client.run_command(self.fake_cmd, shell="bash -c")

0 commit comments

Comments
 (0)