Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitc699e24

Browse files
ensure no error in test write
1 parentf1d6aa5 commitc699e24

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)

[8]ページ先頭

©2009-2025 Movatter.jp