@@ -644,18 +644,18 @@ func TestIntegration_SendAndFetchImageMessages(t *testing.T) {
644644 }
645645
646646 attachment := imageMsg .Attachments [0 ]
647- t .Logf ("Attachment content- type: %s, url: %s, size: %d" , attachment .ContentType , attachment .ContentURL , attachment .ContentSize )
647+ t .Logf ("Attachment type: %s, url: %s, size: %d" , attachment .Type , attachment .URL , attachment .Size )
648648
649- if attachment .ContentType == "" {
650- t .Errorf ("attachment content- type is empty" )
649+ if attachment .Type == "" {
650+ t .Errorf ("attachment type is empty" )
651651 }
652652
653- if attachment .ContentURL == "" {
654- t .Errorf ("attachment content- url is empty" )
653+ if attachment .URL == "" {
654+ t .Errorf ("attachment url is empty" )
655655 }
656656
657- if attachment .ContentSize == 0 {
658- t .Errorf ("attachment content- size is 0" )
657+ if attachment .Size == 0 {
658+ t .Errorf ("attachment size is 0" )
659659 }
660660
661661 // Verify preview exists
@@ -671,8 +671,8 @@ func TestIntegration_SendAndFetchImageMessages(t *testing.T) {
671671 }
672672
673673 preview := imageMsg .Attachments [0 ].Preview
674- if preview .ContentType != "image/jpeg" {
675- t .Errorf ("preview content- type is %s, expected image/jpeg" , preview .ContentType )
674+ if preview .Type != "image/jpeg" {
675+ t .Errorf ("preview type is %s, expected image/jpeg" , preview .Type )
676676 }
677677
678678 if preview .Content == "" {
@@ -690,10 +690,10 @@ func TestIntegration_SendAndFetchImageMessages(t *testing.T) {
690690 }
691691
692692 // Verify the attachment structure
693- t .Logf ("Attachment structure verified: ContentType =%s, ContentURL =%s, ContentSize =%d, HasPreview=%v" ,
694- imageMsg .Attachments [0 ].ContentType ,
695- imageMsg .Attachments [0 ].ContentURL ,
696- imageMsg .Attachments [0 ].ContentSize ,
693+ t .Logf ("Attachment structure verified: Type =%s, URL =%s, Size =%d, HasPreview=%v" ,
694+ imageMsg .Attachments [0 ].Type ,
695+ imageMsg .Attachments [0 ].URL ,
696+ imageMsg .Attachments [0 ].Size ,
697697 imageMsg .Attachments [0 ].Preview != nil )
698698 })
699699 })
0 commit comments