File: 0001-Fix-failing-test.patch

package info (click to toggle)
golang-github-google-go-github 17.0.0-1
  • links: PTS, VCS
  • area: main
  • in suites: buster
  • size: 1,956 kB
  • sloc: makefile: 7
file content (21 lines) | stat: -rw-r--r-- 843 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
From: "Dr. Tobias Quathamer" <toddy@debian.org>
Date: Tue, 28 Aug 2018 13:23:59 +0200
Subject: Fix failing test

---
 github/repos_releases_test.go | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/github/repos_releases_test.go b/github/repos_releases_test.go
index 126a428..b3ec7dc 100644
--- a/github/repos_releases_test.go
+++ b/github/repos_releases_test.go
@@ -327,7 +327,7 @@ func TestRepositoriesService_UploadReleaseAsset(t *testing.T) {
 
 	mux.HandleFunc("/repos/o/r/releases/1/assets", func(w http.ResponseWriter, r *http.Request) {
 		testMethod(t, r, "POST")
-		testHeader(t, r, "Content-Type", "text/plain; charset=utf-8")
+		testHeader(t, r, "Content-Type", "application/octet-stream")
 		testHeader(t, r, "Content-Length", "12")
 		testFormValues(t, r, values{"name": "n"})
 		testBody(t, r, "Upload me !\n")