Improved timings for test.

This commit is contained in:
Martin Edenhofer 2016-06-26 01:42:59 +02:00
parent 16ce2599ee
commit 1f548c01df

View file

@ -36,11 +36,6 @@ class FacebookTest < ActiveSupport::TestCase
customer_id = ENV['FACEBOOK_CUSTOMER'].split(':')[1]
customer_access_token = ENV['FACEBOOK_CUSTOMER'].split(':')[2]
#app_id = '16148802753996712'
#app_secret = '4ff83ae48ae7a375ca25576956cd51dc12'
#oauth = Koala::Facebook::OAuth.new(app_id, app_secret)
#customer_access_token = oauth.exchange_access_token(customer_access_token)
provider_options = {
adapter: 'facebook',
auth: {
@ -125,6 +120,8 @@ class FacebookTest < ActiveSupport::TestCase
message = "I've got an issue with my hat, serial number ##{rand(99_999)}"
post = customer_client.put_wall_post(message, {}, page_id)
sleep 8
# fetch check system account
Channel.fetch
@ -146,6 +143,8 @@ class FacebookTest < ActiveSupport::TestCase
post_comment = "Any updates yet? It's urgent. I love my hat."
comment = customer_client.put_comment(post['id'], post_comment)
sleep 8
# fetch check system account
Channel.fetch
@ -165,6 +164,8 @@ class FacebookTest < ActiveSupport::TestCase
feed_post = "I've got an issue with my hat, serial number ##{rand(99_999)}"
post = customer_client.put_wall_post(feed_post, {}, page_id)
sleep 8
# fetch check system account
Channel.fetch
@ -200,6 +201,8 @@ class FacebookTest < ActiveSupport::TestCase
post_comment = 'The peacock feather is fallen off.'
comment = customer_client.put_comment(post['id'], post_comment)
sleep 8
# fetch check system account
Channel.fetch