File: 0001-test-fix-matching-tls-certificate-error-for-Go1.20.patch

package info (click to toggle)
golang-github-henvic-httpretty 0.1.0-1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 380 kB
  • sloc: sh: 61; makefile: 3
file content (26 lines) | stat: -rw-r--r-- 726 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
From: Shengjing Zhu <shengjing.zhu@canonical.com>
Date: Wed, 8 Feb 2023 16:08:20 +0800
Subject: test: fix matching tls certificate error for Go1.20

Go1.20 adds more info to the tls error. Now it reports:

tls: failed to verify certificate: x509: certificate signed by unknown authority

Close #16
---
 testdata/log.txtar | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/testdata/log.txtar b/testdata/log.txtar
index c587dc2..7094d8c 100644
--- a/testdata/log.txtar
+++ b/testdata/log.txtar
@@ -670,7 +670,7 @@ Hello, world!
 > Host: example\.com
 > User-Agent: Robot/0\.1 crawler@example\.com
 
-\* x509: .+
+\* .*x509: .+
 -- TestOutgoingTooLongResponse --
 * Request to %s
 > GET /long-response HTTP/1.1