Add the missing tests.constants

This commit is contained in:
mhchia 2019-09-06 17:59:39 +08:00
parent 649a230776
commit a754e7dbbe
No known key found for this signature in database
GPG Key ID: 389EFBEA1362589A

4
tests/constants.py Normal file
View File

@ -0,0 +1,4 @@
# Just a arbitrary large number.
# It is used when calling `MplexStream.read(MAX_READ_LEN)`,
# to avoid `MplexStream.read()`, which blocking reads until EOF.
MAX_READ_LEN = 2 ** 32 - 1