@@ -41,7 +41,7 @@ func TestClientLogging(t *testing.T) {
4141 t .Fatalf ("unexpected error making request: %v" , err )
4242 }
4343
44- assertLogFields (t , out .Bytes (), map [string ]interface {} {
44+ assertLogFields (t , out .Bytes (), map [string ]any {
4545 "method" : "GET" ,
4646 "status" : float64 (200 ),
4747 "request_body" : "The request" ,
@@ -60,7 +60,7 @@ func TestClientLogging(t *testing.T) {
6060 t .Fatalf ("unexpected error making request: %v" , err )
6161 }
6262
63- assertLogFields (t , out .Bytes (), map [string ]interface {} {
63+ assertLogFields (t , out .Bytes (), map [string ]any {
6464 "method" : "GET" ,
6565 "status" : float64 (200 ),
6666 "request_body" : missingField ,
@@ -79,7 +79,7 @@ func TestClientLogging(t *testing.T) {
7979 t .Fatalf ("unexpected error making request: %v" , err )
8080 }
8181
82- assertLogFields (t , out .Bytes (), map [string ]interface {} {
82+ assertLogFields (t , out .Bytes (), map [string ]any {
8383 "method" : "GET" ,
8484 "status" : float64 (200 ),
8585 "request_body" : "" ,
@@ -98,7 +98,7 @@ func TestClientLogging(t *testing.T) {
9898 t .Fatalf ("unexpected error making request: %v" , err )
9999 }
100100
101- assertLogFields (t , out .Bytes (), map [string ]interface {} {
101+ assertLogFields (t , out .Bytes (), map [string ]any {
102102 "method" : "GET" ,
103103 "status" : float64 (200 ),
104104 "response_body" : "The response" ,
@@ -117,7 +117,7 @@ func TestClientLogging(t *testing.T) {
117117 t .Fatalf ("unexpected error making request: %v" , err )
118118 }
119119
120- assertLogFields (t , out .Bytes (), map [string ]interface {} {
120+ assertLogFields (t , out .Bytes (), map [string ]any {
121121 "method" : "GET" ,
122122 "status" : float64 (200 ),
123123 "response_body" : missingField ,
@@ -187,10 +187,10 @@ func newEmptyRoundTripper() http.RoundTripper {
187187
188188var missingField struct {}
189189
190- func assertLogFields (t * testing.T , out []byte , expected map [string ]interface {} ) {
190+ func assertLogFields (t * testing.T , out []byte , expected map [string ]any ) {
191191 t .Logf ("log output: %s" , out )
192192
193- var actual map [string ]interface {}
193+ var actual map [string ]any
194194 if err := json .Unmarshal (out , & actual ); err != nil {
195195 t .Fatalf ("unexpected error unmarshalling log fields: %v" , err )
196196 }
0 commit comments