Increase search delay for test
This commit is contained in:
parent
aba0342410
commit
b5c64d7977
1 changed files with 1 additions and 1 deletions
|
|
@ -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)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue