@@ -87,7 +87,7 @@ func TestIntegrationLiveFetch(t *testing.T) {
8787 Platform : "github" ,
8888 URL : "https://github.com/tstromberg" ,
8989 Username : "tstromberg" ,
90- Name : "Thomas Stromberg " ,
90+ Name : "Thomas |Ström`ber`g " ,
9191 CreatedAt : "2009-07-03T14:32:35Z" ,
9292 },
9393 },
@@ -224,7 +224,7 @@ func TestIntegrationLiveFetch(t *testing.T) {
224224 CreatedAt : "2022-11-03T00:00:00.000Z" ,
225225 },
226226 cmpOpts : []cmp.Option {
227- cmpopts .IgnoreFields (profile.Profile {}, "Location" , "Website" , "UpdatedAt" , "SocialLinks" , "Fields" , "Posts" , "Unstructured" , "IsGuess" , "Confidence" , "GuessMatch" ),
227+ cmpopts .IgnoreFields (profile.Profile {}, "Location" , "Website" , "UpdatedAt" , "SocialLinks" , "Fields" , "Posts" , "Unstructured" , "IsGuess" , "Confidence" , "GuessMatch" , "UTCOffset" ),
228228 },
229229 },
230230 {
@@ -635,7 +635,7 @@ func TestIntegrationLiveFetch(t *testing.T) {
635635 // Name, Bio, Location are empty when auth is broken
636636 },
637637 cmpOpts : []cmp.Option {
638- cmpopts .IgnoreFields (profile.Profile {}, "Fields" , "Name" , "Bio" , "Location" , "Website" , "CreatedAt" , "UpdatedAt" , "SocialLinks" , "Posts" , "Unstructured" , "IsGuess" , "Confidence" , "GuessMatch" ),
638+ cmpopts .IgnoreFields (profile.Profile {}, "Fields" , "Name" , "Bio" , "Location" , "Website" , "CreatedAt" , "UpdatedAt" , "SocialLinks" , "Posts" , "Unstructured" , "IsGuess" , "Confidence" , "GuessMatch" , "UTCOffset" ),
639639 },
640640 },
641641 {
@@ -660,7 +660,7 @@ func TestIntegrationLiveFetch(t *testing.T) {
660660 Username : "mattmoor" ,
661661 },
662662 cmpOpts : []cmp.Option {
663- cmpopts .IgnoreFields (profile.Profile {}, "Fields" , "Name" , "Bio" , "Location" , "Website" , "CreatedAt" , "UpdatedAt" , "SocialLinks" , "Posts" , "Unstructured" , "IsGuess" , "Confidence" , "GuessMatch" ),
663+ cmpopts .IgnoreFields (profile.Profile {}, "Fields" , "Name" , "Bio" , "Location" , "Website" , "CreatedAt" , "UpdatedAt" , "SocialLinks" , "Posts" , "Unstructured" , "IsGuess" , "Confidence" , "GuessMatch" , "UTCOffset" ),
664664 },
665665 },
666666 {
@@ -685,7 +685,7 @@ func TestIntegrationLiveFetch(t *testing.T) {
685685 Username : "austen-bryan-23485a19" ,
686686 },
687687 cmpOpts : []cmp.Option {
688- cmpopts .IgnoreFields (profile.Profile {}, "Fields" , "Name" , "Bio" , "Location" , "Website" , "CreatedAt" , "UpdatedAt" , "SocialLinks" , "Posts" , "Unstructured" , "IsGuess" , "Confidence" , "GuessMatch" ),
688+ cmpopts .IgnoreFields (profile.Profile {}, "Fields" , "Name" , "Bio" , "Location" , "Website" , "CreatedAt" , "UpdatedAt" , "SocialLinks" , "Posts" , "Unstructured" , "IsGuess" , "Confidence" , "GuessMatch" , "UTCOffset" ),
689689 },
690690 },
691691 }
@@ -695,7 +695,8 @@ func TestIntegrationLiveFetch(t *testing.T) {
695695 // Bio, Location, Website can be edited by users
696696 // Fields, SocialLinks contain varying platform-specific data
697697 // UpdatedAt, Posts, Unstructured change with activity
698- cmpopts .IgnoreFields (profile.Profile {}, "Bio" , "Location" , "Website" , "Fields" , "SocialLinks" , "UpdatedAt" , "Posts" , "Unstructured" , "IsGuess" , "Confidence" , "GuessMatch" ),
698+ // UTCOffset depends on user's timezone settings
699+ cmpopts .IgnoreFields (profile.Profile {}, "Bio" , "Location" , "Website" , "Fields" , "SocialLinks" , "UpdatedAt" , "Posts" , "Unstructured" , "IsGuess" , "Confidence" , "GuessMatch" , "UTCOffset" ),
699700 }
700701
701702 for _ , tt := range tests {
0 commit comments