Skip to content

Commit

Permalink
- lost check
Browse files Browse the repository at this point in the history
  • Loading branch information
franzhaas committed Nov 10, 2024
1 parent a43fea2 commit f1a64ad
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions tests/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ def test_tcp_internals():
ps = r.reflector(robotframework_construct.Protocol.TCP)
for p in ps:
s1, s2 = [socket.socket(socket.AF_INET, socket.SOCK_STREAM) for _ in range(2)]
s1.connect(("127.0.0.1", p))
s2.connect(("127.0.0.1", p))
with pytest.raises(Exception) as excinfo:
s1.connect(("127.0.0.1", p))
s2.connect(("127.0.0.1", p))
r.shutdown_reflector()

0 comments on commit f1a64ad

Please sign in to comment.