File: Drop-test-currently-failing-on-buildd.patch

package info (click to toggle)
symfony 6.4.21%2Bdfsg-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 121,996 kB
  • sloc: php: 1,438,595; xml: 6,582; sh: 605; javascript: 597; makefile: 188; pascal: 71
file content (58 lines) | stat: -rw-r--r-- 2,003 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
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
From: =?utf-8?q?David_Pr=C3=A9vot?= <david@tilapin.org>
Date: Sun, 12 Jan 2025 17:36:38 +0100
Subject: Drop test currently failing on buildd

---
 .../HttpClient/Tests/HttpClientTraitTest.php       | 39 ----------------------
 1 file changed, 39 deletions(-)

diff --git a/src/Symfony/Component/HttpClient/Tests/HttpClientTraitTest.php b/src/Symfony/Component/HttpClient/Tests/HttpClientTraitTest.php
index 0836ad6..87ef918 100644
--- a/src/Symfony/Component/HttpClient/Tests/HttpClientTraitTest.php
+++ b/src/Symfony/Component/HttpClient/Tests/HttpClientTraitTest.php
@@ -112,45 +112,6 @@ class HttpClientTraitTest extends TestCase
         $this->assertSame($expected, $result);
     }
 
-    /**
-     * @group network
-     *
-     * @requires extension openssl
-     *
-     * @dataProvider provideNormalizeBodyMultipartForwardStream
-     */
-    public function testNormalizeBodyMultipartForwardStream($stream)
-    {
-        $body = [
-            'logo' => $stream,
-        ];
-
-        $headers = [];
-        $body = self::normalizeBody($body, $headers);
-
-        $result = '';
-        while ('' !== $data = $body(self::$CHUNK_SIZE)) {
-            $result .= $data;
-        }
-
-        $this->assertSame(1, preg_match('/^Content-Type: multipart\/form-data; boundary=(?<boundary>.+)$/', $headers['content-type'][0], $matches));
-        $this->assertSame('Content-Length: 3086', $headers['content-length'][0]);
-        $this->assertSame(3086, \strlen($result));
-
-        $expected = <<<EOF
-            --{$matches['boundary']}
-            Content-Disposition: form-data; name="logo"; filename="1f44d.png"
-            Content-Type: image/png
-
-            %A
-            --{$matches['boundary']}--
-
-            EOF;
-        $expected = str_replace("\n", "\r\n", $expected);
-
-        $this->assertStringMatchesFormat($expected, $result);
-    }
-
     public static function provideNormalizeBodyMultipartForwardStream()
     {
         if (!\extension_loaded('openssl')) {