Skip to content

Commit 4fd735a

Browse files
committed
no output on success
1 parent fff0fd1 commit 4fd735a

File tree

2 files changed

+2
-4
lines changed

2 files changed

+2
-4
lines changed

src/common/core/cli/healthcheck.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -30,10 +30,9 @@ def main(argv: list[str]) -> None:
3030
try:
3131
sock.connect(("127.0.0.1", args.port))
3232
except socket.error as e:
33-
sock.close()
3433
print(f"Failed: {e} {args.port=}")
3534
exit(1)
3635
else:
37-
sock.close()
38-
print("OK")
3936
exit(0)
37+
finally:
38+
sock.close()

tests/integration/core/test_main.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,5 +53,4 @@ def test_main__healtcheck__server__runs_expected(
5353
main(argv)
5454

5555
# Then
56-
assert capsys.readouterr().out[:-1] == "OK"
5756
assert exc_info.value.code == 0

0 commit comments

Comments
 (0)