Skip to content

Commit beeb250

Browse files
iabdalkaderdpgeorge
authored andcommitted
tests/multi_net: Fix TCP accept test when using system error numbers.
If a port is not using internal error numbers, which match both lwIP and Linux error numbers, ENTOCONN from standard libraries errno.h equals 128, not 107.
1 parent 6b6ceaf commit beeb250

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tests/multi_net/tcp_accept_recv.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ def instance0():
1717
try:
1818
print("recv", s.recv(10)) # should raise Errno 107 ENOTCONN
1919
except OSError as er:
20-
print(er.errno)
20+
print(er.errno in (107, 128))
2121
s.close()
2222

2323

0 commit comments

Comments
 (0)