File: Increasing-timeout-in-test-AbstractProcessTest-testS.patch

package info (click to toggle)
symfony 6.4.24%2Bdfsg-1
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 122,248 kB
  • sloc: php: 1,440,364; xml: 6,601; sh: 605; javascript: 597; makefile: 188; pascal: 71
file content (29 lines) | stat: -rw-r--r-- 1,195 bytes parent folder | 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 dc56434..7f91355 100644
--- a/src/Symfony/Component/Process/Tests/ProcessTest.php
+++ b/src/Symfony/Component/Process/Tests/ProcessTest.php
@@ -899,9 +899,9 @@ class ProcessTest extends TestCase
     public function testStartAfterATimeout()
     {
         $this->expectException(ProcessTimedOutException::class);
-        $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();