@@ -611,14 +611,14 @@ func TestAllEventTypes(t *testing.T) {
611611 }
612612
613613 // Verify request body structure
614- var requestBody map [string ]interface {}
614+ var requestBody map [string ]any
615615 if err := json .Unmarshal (bodies [i ], & requestBody ); err != nil {
616616 t .Errorf ("Request %d: Failed to unmarshal request body: %v" , i , err )
617617 continue
618618 }
619619
620620 // Verify it has records array structure
621- records , ok := requestBody ["records" ].([]interface {} )
621+ records , ok := requestBody ["records" ].([]any )
622622 if ! ok {
623623 t .Errorf ("Request %d: Expected 'records' array in request body" , i )
624624 continue
@@ -629,13 +629,13 @@ func TestAllEventTypes(t *testing.T) {
629629 }
630630
631631 // Verify the event structure
632- record := records [0 ].(map [string ]interface {} )
632+ record := records [0 ].(map [string ]any )
633633 if eventType , ok := record ["event" ].(string ); ! ok || eventType == "" {
634634 t .Errorf ("Request %d: Expected non-empty event type, got %v" , i , record ["event" ])
635635 }
636636
637637 // Verify properties exist
638- if _ , ok := record ["properties" ].(map [string ]interface {} ); ! ok {
638+ if _ , ok := record ["properties" ].(map [string ]any ); ! ok {
639639 t .Errorf ("Request %d: Expected properties object in event" , i )
640640 }
641641 }
@@ -862,13 +862,13 @@ func TestHTTPRequestVerification(t *testing.T) {
862862 t .Fatal ("Expected request body to be captured" )
863863 }
864864
865- var requestBody map [string ]interface {}
865+ var requestBody map [string ]any
866866 if err := json .Unmarshal (bodies [0 ], & requestBody ); err != nil {
867867 t .Fatalf ("Failed to unmarshal request body: %v" , err )
868868 }
869869
870870 // Verify it has records array structure
871- records , ok := requestBody ["records" ].([]interface {} )
871+ records , ok := requestBody ["records" ].([]any )
872872 if ! ok {
873873 t .Fatal ("Expected 'records' array in request body" )
874874 }
@@ -877,13 +877,13 @@ func TestHTTPRequestVerification(t *testing.T) {
877877 }
878878
879879 // Verify the event structure
880- record := records [0 ].(map [string ]interface {} )
880+ record := records [0 ].(map [string ]any )
881881 if record ["event" ] != "command" {
882882 t .Errorf ("Expected event type 'command', got %v" , record ["event" ])
883883 }
884884
885885 // Verify properties contain the command data
886- properties , ok := record ["properties" ].(map [string ]interface {} )
886+ properties , ok := record ["properties" ].(map [string ]any )
887887 if ! ok {
888888 t .Fatal ("Expected properties object in event" )
889889 }
0 commit comments