From 4276e243ac1c4631354f26800aceccebb97ccf86 Mon Sep 17 00:00:00 2001 From: Valentine Date: Wed, 22 Jan 2025 23:57:00 +0300 Subject: [PATCH] fix test fail --- profile_test.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/profile_test.go b/profile_test.go index eb82891..6b7b940 100644 --- a/profile_test.go +++ b/profile_test.go @@ -42,6 +42,8 @@ func TestGetProfile(t *testing.T) { cmpopts.IgnoreFields(twitterscraper.Profile{}, "LikesCount"), cmpopts.IgnoreFields(twitterscraper.Profile{}, "ListedCount"), cmpopts.IgnoreFields(twitterscraper.Profile{}, "TweetsCount"), + cmpopts.IgnoreFields(twitterscraper.Profile{}, "MediaCount"), + cmpopts.IgnoreFields(twitterscraper.Profile{}, "NormalFollowersCount"), } if diff := cmp.Diff(sample, profile, cmpOptions...); diff != "" { t.Error("Resulting profile does not match the sample", diff) @@ -94,6 +96,8 @@ func TestGetProfilePrivate(t *testing.T) { cmpopts.IgnoreFields(twitterscraper.Profile{}, "LikesCount"), cmpopts.IgnoreFields(twitterscraper.Profile{}, "ListedCount"), cmpopts.IgnoreFields(twitterscraper.Profile{}, "TweetsCount"), + cmpopts.IgnoreFields(twitterscraper.Profile{}, "MediaCount"), + cmpopts.IgnoreFields(twitterscraper.Profile{}, "NormalFollowersCount"), } if diff := cmp.Diff(sample, profile, cmpOptions...); diff != "" { t.Error("Resulting profile does not match the sample", diff)