Skip to content

Commit 43c91c0

Browse files
author
vshepard
committed
Fix test_the_same_port
1 parent 19ef23f commit 43c91c0

File tree

2 files changed

+4
-6
lines changed

2 files changed

+4
-6
lines changed

tests/test_remote.py

-1
Original file line numberDiff line numberDiff line change
@@ -213,4 +213,3 @@ def test_skip_ssl(self):
213213
if isinstance(res, list):
214214
res.sort()
215215
assert res == [(1,), (2,)]
216-

tests/test_simple.py

+4-5
Original file line numberDiff line numberDiff line change
@@ -1039,10 +1039,9 @@ def test_parse_pg_version(self):
10391039
def test_the_same_port(self):
10401040
with get_new_node() as node:
10411041
node.init().start()
1042-
1043-
with get_new_node() as node2:
1044-
node2.port = node.port
1045-
node2.init().start()
1042+
with get_new_node() as node2:
1043+
node2.port = node.port
1044+
node2.init().start()
10461045

10471046
def test_make_simple_with_bin_dir(self):
10481047
with get_new_node() as node:
@@ -1059,7 +1058,7 @@ def test_make_simple_with_bin_dir(self):
10591058
wrong_bin_dir.slow_start()
10601059
raise RuntimeError("Error was expected.") # We should not reach this
10611060
except FileNotFoundError:
1062-
pass # Expected error
1061+
pass # Expected error
10631062

10641063

10651064
if __name__ == '__main__':

0 commit comments

Comments
 (0)