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") }