Skip to content

Commit 9aff5ff

Browse files
committed
fill gating fields in tools test fixture
exhaustruct requires the config literal to name the fields introduced with the gating flags.
1 parent d7f075d commit 9aff5ff

1 file changed

Lines changed: 7 additions & 4 deletions

File tree

internal/tools/get-change_test.go

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -53,10 +53,13 @@ func session(t *testing.T, gerritHandler http.HandlerFunc) *mcp.ClientSession {
5353
t.Cleanup(srv.Close)
5454

5555
client, err := gerritclient.New(t.Context(), &config.Config{
56-
GerritURL: srv.URL,
57-
Username: "bot",
58-
Token: "s3cret",
59-
Groups: []config.Group{config.GroupRead},
56+
GerritURL: srv.URL,
57+
Username: "bot",
58+
Token: "s3cret",
59+
Groups: []config.Group{config.GroupRead},
60+
IncludeTools: nil,
61+
ExcludeTools: nil,
62+
Projects: nil,
6063
})
6164
require.NoError(t, err)
6265

0 commit comments

Comments
 (0)