Skip to content

Commit 30c355a

Browse files
authored
Merge pull request #240 from WyriHaximus-labs/1.x-increase-query-count-in-excessive-tcp-query-tests
[1.x] Increase query count in excessive TCP query tests
2 parents eb8ae00 + f4702f2 commit 30c355a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tests/Query/TcpTransportExecutorTest.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -336,7 +336,7 @@ public function testQueryStaysPendingWhenClientCanNotSendExcessiveMessageInOneCh
336336
$query = new Query('google' . str_repeat('.com', 100), Message::TYPE_A, Message::CLASS_IN);
337337

338338
// send a bunch of queries and keep reference to last promise
339-
for ($i = 0; $i < 2000; ++$i) {
339+
for ($i = 0; $i < 20000; ++$i) {
340340
$promise = $executor->query($query);
341341
}
342342

@@ -371,7 +371,7 @@ public function testQueryRejectsWhenClientKeepsSendingWhenServerClosesSocketWith
371371

372372
// send a bunch of queries and keep reference to last promise
373373
$exception = null;
374-
for ($i = 0; $i < 2000; ++$i) {
374+
for ($i = 0; $i < 20000; ++$i) {
375375
$promise = $executor->query($query);
376376
$promise->then(null, function (\Exception $reason) use (&$exception) {
377377
$exception = $reason;

0 commit comments

Comments
 (0)