From 59abd2e4cd5d56335d5155acd40b317b48f36899 Mon Sep 17 00:00:00 2001 From: Dmitriy Ryajov Date: Wed, 11 Mar 2020 09:32:10 -0600 Subject: [PATCH] remove unnecesary while --- tests/testmplex.nim | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/tests/testmplex.nim b/tests/testmplex.nim index dfb8965b7..ad384fb47 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..