Skip to content

Commit c699e24

Browse files
ensure no error in test write
1 parent f1d6aa5 commit c699e24

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

pkg/github/repository_resource_test.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -132,7 +132,8 @@ func Test_repositoryResourceContentsHandler(t *testing.T) {
132132
http.HandlerFunc(func(w http.ResponseWriter, _ *http.Request) {
133133
w.Header().Set("Content-Type", "image/png")
134134
// as this is given as a png, it will return the content as a blob
135-
w.Write([]byte("# Test Repository\n\nThis is a test repository."))
135+
_, err := w.Write([]byte("# Test Repository\n\nThis is a test repository."))
136+
require.NoError(t, err)
136137
}),
137138
),
138139
),

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy