@@ -146,7 +146,7 @@ func TestExchangeToken_Opts(t *testing.T) {
146146 } else if len (strOpts ) < 1 {
147147 t .Errorf ("\" options\" field has length 0." )
148148 }
149- var opts map [string ]interface {}
149+ var opts map [string ]any
150150 err = json .Unmarshal ([]byte (strOpts [0 ]), & opts )
151151 if err != nil {
152152 t .Fatalf ("Couldn't parse received \" options\" field." )
@@ -159,7 +159,7 @@ func TestExchangeToken_Opts(t *testing.T) {
159159 if ! ok {
160160 t .Errorf ("Couldn't find first option parameter." )
161161 } else {
162- tOpts1 , ok := val .(map [string ]interface {} )
162+ tOpts1 , ok := val .(map [string ]any )
163163 if ! ok {
164164 t .Errorf ("Failed to assert the first option parameter as type testOpts." )
165165 } else {
@@ -176,7 +176,7 @@ func TestExchangeToken_Opts(t *testing.T) {
176176 if ! ok {
177177 t .Errorf ("Couldn't find second option parameter." )
178178 } else {
179- tOpts2 , ok := val2 .(map [string ]interface {} )
179+ tOpts2 , ok := val2 .(map [string ]any )
180180 if ! ok {
181181 t .Errorf ("Failed to assert the second option parameter as type testOpts." )
182182 } else {
@@ -200,7 +200,7 @@ func TestExchangeToken_Opts(t *testing.T) {
200200
201201 firstOption := testOpts {optsValues [0 ][0 ], optsValues [0 ][1 ]}
202202 secondOption := testOpts {optsValues [1 ][0 ], optsValues [1 ][1 ]}
203- inputOpts := make (map [string ]interface {} )
203+ inputOpts := make (map [string ]any )
204204 inputOpts ["one" ] = firstOption
205205 inputOpts ["two" ] = secondOption
206206 ExchangeToken (context .Background (), ts .URL , & exchangeTokenRequest , auth , headers , inputOpts )
0 commit comments