@@ -192,7 +192,6 @@ func TestClientPaginateVariousPageSizes(t *testing.T) {
192192}
193193
194194func TestClientCapabilities (t * testing.T ) {
195- canListRoots := RootsCapabilities {ListChanged : true }
196195 testCases := []struct {
197196 name string
198197 configureClient func (s * Client )
@@ -203,8 +202,8 @@ func TestClientCapabilities(t *testing.T) {
203202 name : "With initial capabilities" ,
204203 configureClient : func (s * Client ) {},
205204 wantCapabilities : & ClientCapabilities {
206- Roots : canListRoots ,
207- RootsV2 : & canListRoots ,
205+ Roots : RootCapabilities { ListChanged : true } ,
206+ RootsV2 : & RootCapabilities { ListChanged : true } ,
208207 },
209208 },
210209 {
@@ -216,8 +215,8 @@ func TestClientCapabilities(t *testing.T) {
216215 },
217216 },
218217 wantCapabilities : & ClientCapabilities {
219- Roots : canListRoots ,
220- RootsV2 : & canListRoots ,
218+ Roots : RootCapabilities { ListChanged : true } ,
219+ RootsV2 : & RootCapabilities { ListChanged : true } ,
221220 Sampling : & SamplingCapabilities {},
222221 },
223222 },
@@ -231,8 +230,8 @@ func TestClientCapabilities(t *testing.T) {
231230 },
232231 },
233232 wantCapabilities : & ClientCapabilities {
234- Roots : canListRoots ,
235- RootsV2 : & canListRoots ,
233+ Roots : RootCapabilities { ListChanged : true } ,
234+ RootsV2 : & RootCapabilities { ListChanged : true } ,
236235 Elicitation : & ElicitationCapabilities {
237236 Form : & FormElicitationCapabilities {},
238237 },
@@ -248,10 +247,8 @@ func TestClientCapabilities(t *testing.T) {
248247 },
249248 },
250249 wantCapabilities : & ClientCapabilities {
251- Roots : struct {
252- ListChanged bool "json:\" listChanged,omitempty\" "
253- }{ListChanged : true },
254- RootsV2 : & RootsCapabilities {ListChanged : true },
250+ Roots : RootCapabilities {ListChanged : true },
251+ RootsV2 : & RootCapabilities {ListChanged : true },
255252 Elicitation : & ElicitationCapabilities {
256253 URL : & URLElicitationCapabilities {},
257254 },
@@ -267,10 +264,8 @@ func TestClientCapabilities(t *testing.T) {
267264 },
268265 },
269266 wantCapabilities : & ClientCapabilities {
270- Roots : struct {
271- ListChanged bool "json:\" listChanged,omitempty\" "
272- }{ListChanged : true },
273- RootsV2 : & RootsCapabilities {ListChanged : true },
267+ Roots : RootCapabilities {ListChanged : true },
268+ RootsV2 : & RootCapabilities {ListChanged : true },
274269 Elicitation : & ElicitationCapabilities {
275270 Form : & FormElicitationCapabilities {},
276271 URL : & URLElicitationCapabilities {},
0 commit comments