Skip to content

Commit df6e586

Browse files
committed
fix auth_test
1 parent 89e3d11 commit df6e586

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tests/auth_test.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ def tearDownClass(cls):
6969
cls.node.cleanup()
7070
cls.pb.del_test_dir(module_name, '')
7171

72-
@unittest.skipUnless(skip_test,"Module pexpect isn't installed. You need to install it.")
72+
@unittest.skipIf(skip_test, "Module pexpect isn't installed. You need to install it.")
7373
def setUp(self):
7474
self.cmd = [self.pb.probackup_path, 'backup',
7575
'-B', self.backup_dir,
@@ -130,7 +130,7 @@ def modify_pg_hba(node):
130130

131131
def run_pb_with_auth(cmd, password=None, kill=False):
132132
try:
133-
with pexpect.spawn(" ".join(cmd)) as probackup:
133+
with pexpect.spawn(" ".join(cmd), timeout=10) as probackup:
134134
result = probackup.expect("Password for user .*:", 5)
135135
if kill:
136136
probackup.kill(signal.SIGINT)

0 commit comments

Comments
 (0)