diff --git a/tests/testmplex.nim b/tests/testmplex.nim index dfb8965..ad384fb 100644 --- a/tests/testmplex.nim +++ b/tests/testmplex.nim @@ -428,10 +428,7 @@ suite "Mplex": const max = 500 const min = 100 while sent < total: - var len = 0 - while len > max or len <= 0: - len = rand(min..max) - + var len = rand(min..max) len = if len > buf.buffer.len: buf.buffer.len else: len var send = buf.buffer[0..