File: 0002-Skip-failed-TestHTTPClientSanitizeJSONControlCharact.patch

package info (click to toggle)
gh 2.46.0-4
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 15,548 kB
  • sloc: sh: 227; makefile: 117
file content (22 lines) | stat: -rw-r--r-- 825 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
From: Shengjing Zhu <zhsj@debian.org>
Date: Thu, 29 Feb 2024 19:28:34 +0800
Subject: Skip failed TestHTTPClientSanitizeJSONControlCharactersC0 on go1.22

Go1.22 changes json encoding behavior.
https://github.com/golang/go/issues/64346
---
 api/http_client_test.go | 1 +
 1 file changed, 1 insertion(+)

diff --git a/api/http_client_test.go b/api/http_client_test.go
index dca032e..0155e8a 100644
--- a/api/http_client_test.go
+++ b/api/http_client_test.go
@@ -192,6 +192,7 @@ func TestHTTPClientRedirectAuthenticationHeaderHandling(t *testing.T) {
 }
 
 func TestHTTPClientSanitizeJSONControlCharactersC0(t *testing.T) {
+	t.Skip("https://github.com/cli/cli/issues/8668")
 	ts := httptest.NewServer(http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) {
 		issue := Issue{
 			Title: "\u001B[31mRed Title\u001B[0m",