@@ -44,8 +44,8 @@ func TestListHTTPServerStats(t *testing.T) {
4444 t .Error ("request query 'perPage' param should be 20 but: " , query .Get ("perPage" ))
4545 }
4646
47- respJSON , _ := json .Marshal (map [string ]interface {} {
48- "results" : []map [string ]interface {} {
47+ respJSON , _ := json .Marshal (map [string ]any {
48+ "results" : []map [string ]any {
4949 {
5050 "method" : "GET" ,
5151 "route" : "/api/users" ,
@@ -148,8 +148,8 @@ func TestListHTTPServerStatsWithMinimalParams(t *testing.T) {
148148 t .Error ("request query 'to' param should be 2000000000 but: " , query .Get ("to" ))
149149 }
150150
151- respJSON , _ := json .Marshal (map [string ]interface {} {
152- "results" : []map [string ]interface {} {},
151+ respJSON , _ := json .Marshal (map [string ]any {
152+ "results" : []map [string ]any {},
153153 "hasNextPage" : false ,
154154 })
155155
@@ -200,8 +200,8 @@ func TestListHTTPServerStatsContext(t *testing.T) {
200200 t .Error ("request query 'to' param should be 1234567900 but: " , query .Get ("to" ))
201201 }
202202
203- respJSON , _ := json .Marshal (map [string ]interface {} {
204- "results" : []map [string ]interface {} {
203+ respJSON , _ := json .Marshal (map [string ]any {
204+ "results" : []map [string ]any {
205205 {
206206 "method" : "GET" ,
207207 "route" : "/api/users" ,
@@ -259,8 +259,8 @@ func TestListHTTPServerStatsContext(t *testing.T) {
259259func TestListHTTPServerStatsContextWithTimeout (t * testing.T ) {
260260 ts := httptest .NewServer (http .HandlerFunc (func (res http.ResponseWriter , req * http.Request ) {
261261 time .Sleep (100 * time .Millisecond )
262- respJSON , _ := json .Marshal (map [string ]interface {} {
263- "results" : []map [string ]interface {} {},
262+ respJSON , _ := json .Marshal (map [string ]any {
263+ "results" : []map [string ]any {},
264264 "hasNextPage" : false ,
265265 })
266266 res .Header ()["Content-Type" ] = []string {"application/json" }
@@ -287,8 +287,8 @@ func TestListHTTPServerStatsContextWithTimeout(t *testing.T) {
287287func TestListHTTPServerStatsContextWithCancel (t * testing.T ) {
288288 ts := httptest .NewServer (http .HandlerFunc (func (res http.ResponseWriter , req * http.Request ) {
289289 time .Sleep (100 * time .Millisecond )
290- respJSON , _ := json .Marshal (map [string ]interface {} {
291- "results" : []map [string ]interface {} {},
290+ respJSON , _ := json .Marshal (map [string ]any {
291+ "results" : []map [string ]any {},
292292 "hasNextPage" : false ,
293293 })
294294 res .Header ()["Content-Type" ] = []string {"application/json" }
@@ -348,8 +348,8 @@ func TestListDbQueryStats(t *testing.T) {
348348 t .Error ("request query 'perPage' param should be 20 but: " , query .Get ("perPage" ))
349349 }
350350
351- respJSON , _ := json .Marshal (map [string ]interface {} {
352- "results" : []map [string ]interface {} {
351+ respJSON , _ := json .Marshal (map [string ]any {
352+ "results" : []map [string ]any {
353353 {
354354 "query" : "SELECT * FROM users WHERE id = ?" ,
355355 "executionCount" : 1250 ,
@@ -444,8 +444,8 @@ func TestListDbQueryStatsWithMinimalParams(t *testing.T) {
444444 t .Error ("request query 'to' param should be 2000000000 but: " , query .Get ("to" ))
445445 }
446446
447- respJSON , _ := json .Marshal (map [string ]interface {} {
448- "results" : []map [string ]interface {} {},
447+ respJSON , _ := json .Marshal (map [string ]any {
448+ "results" : []map [string ]any {},
449449 "hasNextPage" : false ,
450450 })
451451
@@ -496,8 +496,8 @@ func TestListDbQueryStatsContext(t *testing.T) {
496496 t .Error ("request query 'to' param should be 1234567900 but: " , query .Get ("to" ))
497497 }
498498
499- respJSON , _ := json .Marshal (map [string ]interface {} {
500- "results" : []map [string ]interface {} {
499+ respJSON , _ := json .Marshal (map [string ]any {
500+ "results" : []map [string ]any {
501501 {
502502 "query" : "SELECT * FROM users WHERE id = ?" ,
503503 "executionCount" : 1250 ,
@@ -551,8 +551,8 @@ func TestListDbQueryStatsContext(t *testing.T) {
551551func TestListDbQueryStatsContextWithTimeout (t * testing.T ) {
552552 ts := httptest .NewServer (http .HandlerFunc (func (res http.ResponseWriter , req * http.Request ) {
553553 time .Sleep (100 * time .Millisecond )
554- respJSON , _ := json .Marshal (map [string ]interface {} {
555- "results" : []map [string ]interface {} {},
554+ respJSON , _ := json .Marshal (map [string ]any {
555+ "results" : []map [string ]any {},
556556 "hasNextPage" : false ,
557557 })
558558 res .Header ()["Content-Type" ] = []string {"application/json" }
@@ -579,8 +579,8 @@ func TestListDbQueryStatsContextWithTimeout(t *testing.T) {
579579func TestListDbQueryStatsContextWithCancel (t * testing.T ) {
580580 ts := httptest .NewServer (http .HandlerFunc (func (res http.ResponseWriter , req * http.Request ) {
581581 time .Sleep (100 * time .Millisecond )
582- respJSON , _ := json .Marshal (map [string ]interface {} {
583- "results" : []map [string ]interface {} {},
582+ respJSON , _ := json .Marshal (map [string ]any {
583+ "results" : []map [string ]any {},
584584 "hasNextPage" : false ,
585585 })
586586 res .Header ()["Content-Type" ] = []string {"application/json" }
0 commit comments