@@ -146,7 +146,7 @@ func TestExchangeToken_Opts(t *testing.T) {
146
146
} else if len (strOpts ) < 1 {
147
147
t .Errorf ("\" options\" field has length 0." )
148
148
}
149
- var opts map [string ]interface {}
149
+ var opts map [string ]any
150
150
err = json .Unmarshal ([]byte (strOpts [0 ]), & opts )
151
151
if err != nil {
152
152
t .Fatalf ("Couldn't parse received \" options\" field." )
@@ -159,7 +159,7 @@ func TestExchangeToken_Opts(t *testing.T) {
159
159
if ! ok {
160
160
t .Errorf ("Couldn't find first option parameter." )
161
161
} else {
162
- tOpts1 , ok := val .(map [string ]interface {} )
162
+ tOpts1 , ok := val .(map [string ]any )
163
163
if ! ok {
164
164
t .Errorf ("Failed to assert the first option parameter as type testOpts." )
165
165
} else {
@@ -176,7 +176,7 @@ func TestExchangeToken_Opts(t *testing.T) {
176
176
if ! ok {
177
177
t .Errorf ("Couldn't find second option parameter." )
178
178
} else {
179
- tOpts2 , ok := val2 .(map [string ]interface {} )
179
+ tOpts2 , ok := val2 .(map [string ]any )
180
180
if ! ok {
181
181
t .Errorf ("Failed to assert the second option parameter as type testOpts." )
182
182
} else {
@@ -200,7 +200,7 @@ func TestExchangeToken_Opts(t *testing.T) {
200
200
201
201
firstOption := testOpts {optsValues [0 ][0 ], optsValues [0 ][1 ]}
202
202
secondOption := testOpts {optsValues [1 ][0 ], optsValues [1 ][1 ]}
203
- inputOpts := make (map [string ]interface {} )
203
+ inputOpts := make (map [string ]any )
204
204
inputOpts ["one" ] = firstOption
205
205
inputOpts ["two" ] = secondOption
206
206
ExchangeToken (context .Background (), ts .URL , & exchangeTokenRequest , auth , headers , inputOpts )
0 commit comments