Skip to content

Commit 72065ce

Browse files
author
mihakezi
committed
[issue #2373] Fixed swoole_server/close_reset.phpt
1 parent 00597e1 commit 72065ce

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tests/swoole_server/close_reset.phpt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,11 +34,11 @@ $pm->parentFunc = function ($pid) use ($pm) {
3434
break;
3535
}
3636
$data .= $ret;
37-
if (substr($ret, -2, 2) == "\r\n") {
37+
if (substr($ret, -2, 2) === "\r\n") {
3838
break;
3939
}
4040
}
41-
Assert::lessThan(strlen($data), N);
41+
Assert::lessThanEq(strlen($data), N + 2);
4242
echo "DONE\n";
4343
});
4444
Swoole\Event::wait();

0 commit comments

Comments
 (0)