File: 1001_relax_timeout_errormsg.patch

package info (click to toggle)
libfurl-perl 3.13-2
  • links: PTS, VCS
  • area: main
  • in suites: bullseye, buster
  • size: 668 kB
  • sloc: perl: 2,188; makefile: 20; sh: 4
file content (16 lines) | stat: -rw-r--r-- 674 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
Description: Relax detection of timeout error message
Author: Jonas Smedegaard <dr@jones.dk>
Last-Update: 2017-10-01
---
This patch header follows DEP-3: http://dep.debian.net/deps/dep3/
--- a/t/100_low/07_timeout.t
+++ b/t/100_low/07_timeout.t
@@ -73,7 +73,7 @@
                 $content_size_mb *= 2;
             }
             is $code, 500, "request()/$_";
-            like $msg, qr/Internal Response: Failed to send content: timeout/;
+            like $msg, qr/Internal Response: ([^:]+): timeout/;
             is ref($headers), "ARRAY";
             is Plack::Util::header_get($headers, 'X-Internal-Response'), 1;
             ok $content, 'content: ' . $content;