Increase search delay for test

This commit is contained in:
Nomadic 2021-11-09 12:08:15 +02:00 committed by GitHub
parent aba0342410
commit b5c64d7977

View file

@ -53,7 +53,7 @@ func TestGetSearchTweets(t *testing.T) {
count := 0 count := 0
maxTweetsNbr := 150 maxTweetsNbr := 150
dupcheck := make(map[string]bool) dupcheck := make(map[string]bool)
scraper := New().WithDelay(3) scraper := New().WithDelay(4)
for tweet := range scraper.SearchTweets(context.Background(), "twitter -filter:retweets", maxTweetsNbr) { for tweet := range scraper.SearchTweets(context.Background(), "twitter -filter:retweets", maxTweetsNbr) {
if tweet.Error != nil { if tweet.Error != nil {
t.Error(tweet.Error) t.Error(tweet.Error)