Package: symfony / 5.0.4-1

Increasing-timeout-in-test-AbstractProcessTest-testS.patch Patch series | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
From: Daniel Beyer <dabe@deb.ymc.ch>
Date: Fri, 30 Jan 2015 10:59:37 +0100
Subject: Increasing timeout in test
 AbstractProcessTest::testStartAfterATimeout()

This hopefully will allow ci.debian.net to run DEP-8 as installed tests
and might prevent FTBFS #775625 from hitting us again.

Forwarded: no
---
 src/Symfony/Component/Process/Tests/ProcessTest.php | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/Symfony/Component/Process/Tests/ProcessTest.php b/src/Symfony/Component/Process/Tests/ProcessTest.php
index 0c70f63..ff9c93e 100644
--- a/src/Symfony/Component/Process/Tests/ProcessTest.php
+++ b/src/Symfony/Component/Process/Tests/ProcessTest.php
@@ -859,9 +859,9 @@ class ProcessTest extends TestCase
     public function testStartAfterATimeout()
     {
         $this->expectException('Symfony\Component\Process\Exception\ProcessTimedOutException');
-        $this->expectExceptionMessage('exceeded the timeout of 0.1 seconds.');
+        $this->expectExceptionMessage('exceeded the timeout of 0.5 seconds.');
         $process = $this->getProcessForCode('sleep(35);');
-        $process->setTimeout(0.1);
+        $process->setTimeout(0.5);
 
         try {
             $process->run();