Add tests against the daemon for close/reset

This commit is contained in:
mhchia
2019-09-10 17:51:39 +08:00
parent bb0da41eda
commit df87f5adb9
4 changed files with 156 additions and 1 deletions

View File

@ -112,7 +112,6 @@ class MplexStream(IMuxedStream):
:param n: number of bytes to read
:return: bytes actually read
"""
# TODO: Add exceptions and handle/raise them in this class.
if n < 0 and n != -1:
raise ValueError(
f"the number of bytes to read `n` must be positive or -1 to indicate read until EOF"