Thanks to visit codestin.com
Credit goes to github.com

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)