From d8dd7d54eab3d447d22f4de2a550e6dbe4801af5 Mon Sep 17 00:00:00 2001 From: Alexander Sheiko Date: Mon, 9 Aug 2021 14:02:35 +0300 Subject: [PATCH] Fix test --- tweets_test.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tweets_test.go b/tweets_test.go index 0792964..c241e18 100644 --- a/tweets_test.go +++ b/tweets_test.go @@ -119,7 +119,7 @@ func TestQuotedAndReply(t *testing.T) { if !tweet.IsQuoted { t.Error("IsQuoted must be True") } - if diff := cmp.Diff(sample, tweet.QuotedStatus); diff != "" { + if diff := cmp.Diff(sample, tweet.QuotedStatus, cmpOptions...); diff != "" { t.Error("Resulting quote does not match the sample", diff) } } @@ -130,7 +130,7 @@ func TestQuotedAndReply(t *testing.T) { if !tweet.IsReply { t.Error("IsReply must be True") } - if diff := cmp.Diff(sample, tweet.InReplyToStatus); diff != "" { + if diff := cmp.Diff(sample, tweet.InReplyToStatus, cmpOptions...); diff != "" { t.Error("Resulting reply does not match the sample", diff) } }