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

Commitd8ebdb7

Browse files
RemoteOperations::is_port_free is updated (comments)
1 parent8f3a566 commitd8ebdb7

File tree

1 file changed

+12
-2
lines changed

1 file changed

+12
-2
lines changed

‎testgres/operations/remote_ops.py

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -658,13 +658,23 @@ def is_port_free(self, number: int) -> bool:
658658
@staticmethod
659659
def_is_port_free__process_0(error:str)->bool:
660660
asserttype(error)==str# noqa: E721
661-
# TODO: check error message?
661+
#
662+
# Example of error text:
663+
# "Connection to localhost (127.0.0.1) 1024 port [tcp/*] succeeded!\n"
664+
#
665+
# May be here is needed to check error message?
666+
#
662667
returnFalse
663668

664669
@staticmethod
665670
def_is_port_free__process_1(error:str)->bool:
666671
asserttype(error)==str# noqa: E721
667-
# TODO: check error message?
672+
#
673+
# Example of error text:
674+
# "nc: connect to localhost (127.0.0.1) port 1024 (tcp) failed: Connection refused\n"
675+
#
676+
# May be here is needed to check error message?
677+
#
668678
returnTrue
669679

670680
# Database control

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp