Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit85d2aa3

Browse files
TestgresTests::test_the_same_port is corrected
1 parente4c2e07 commit85d2aa3

File tree

1 file changed

+11
-3
lines changed

1 file changed

+11
-3
lines changed

‎tests/test_simple.py

Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1051,10 +1051,18 @@ def test_parse_pg_version(self):
10511051
deftest_the_same_port(self):
10521052
withget_new_node()asnode:
10531053
node.init().start()
1054+
self.assertTrue(node._should_free_port)
1055+
self.assertEqual(type(node.port),int)
10541056

1055-
withget_new_node()asnode2:
1056-
node2.port=node.port
1057-
node2.init().start()
1057+
withget_new_node(port=node.port)asnode2:
1058+
self.assertEqual(type(node2.port),int)
1059+
self.assertEqual(node2.port,node.port)
1060+
self.assertFalse(node2._should_free_port)
1061+
1062+
withself.assertRaises(StartNodeException)asctx:
1063+
node2.init().start()
1064+
1065+
self.assertIn("Cannot start node",str(ctx.exception))
10581066

10591067
deftest_simple_with_bin_dir(self):
10601068
withget_new_node()asnode:

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp