From 78bf7d636558c753b6af08890a460bc738222e7a Mon Sep 17 00:00:00 2001 From: Alexander Sheiko Date: Thu, 2 Mar 2023 11:59:27 +0200 Subject: [PATCH] Fix cursor test --- search_test.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/search_test.go b/search_test.go index bef2fdf..553b5aa 100644 --- a/search_test.go +++ b/search_test.go @@ -2,6 +2,7 @@ package twitterscraper_test import ( "context" + "strings" "testing" twitterscraper "github.com/n0madic/twitter-scraper" @@ -17,6 +18,9 @@ func TestFetchSearchCursor(t *testing.T) { if err != nil { t.Fatal(err) } + if strings.HasPrefix(cursor, "scroll:") { + continue + } if cursor == "" { t.Fatal("Expected search cursor is empty") }