Skip to content

Commit 7140333

Browse files
committed
Add nil check for tool.Annotations in Test_CreatePullRequest
1 parent 714aa46 commit 7140333

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

pkg/github/pullrequests_test.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2198,6 +2198,7 @@ func Test_CreatePullRequest(t *testing.T) {
21982198

21992199
assert.Equal(t, "create_pull_request", tool.Name)
22002200
assert.NotEmpty(t, tool.Description)
2201+
require.NotNil(t, tool.Annotations)
22012202
require.NotNil(t, tool.Annotations.DestructiveHint)
22022203
assert.True(t, *tool.Annotations.DestructiveHint)
22032204
schema := tool.InputSchema.(*jsonschema.Schema)

0 commit comments

Comments
 (0)