Improved timing.
This commit is contained in:
parent
6a3fe7f12f
commit
fedae1587a
1 changed files with 2 additions and 2 deletions
|
@ -392,7 +392,7 @@ class TwitterTest < ActiveSupport::TestCase
|
||||||
(1..2).each {
|
(1..2).each {
|
||||||
article = Ticket::Article.find_by(message_id: tweet.id)
|
article = Ticket::Article.find_by(message_id: tweet.id)
|
||||||
break if article
|
break if article
|
||||||
sleep 10
|
sleep 15
|
||||||
}
|
}
|
||||||
assert(article)
|
assert(article)
|
||||||
assert_equal('@me_bauer', article.from, 'ticket article from')
|
assert_equal('@me_bauer', article.from, 'ticket article from')
|
||||||
|
@ -416,7 +416,7 @@ class TwitterTest < ActiveSupport::TestCase
|
||||||
(1..2).each {
|
(1..2).each {
|
||||||
article = Ticket::Article.find_by(message_id: tweet.id)
|
article = Ticket::Article.find_by(message_id: tweet.id)
|
||||||
break if article
|
break if article
|
||||||
sleep 10
|
sleep 15
|
||||||
}
|
}
|
||||||
assert(article)
|
assert(article)
|
||||||
assert_equal('@me_bauer', article.from, 'ticket article from')
|
assert_equal('@me_bauer', article.from, 'ticket article from')
|
||||||
|
|
Loading…
Reference in a new issue