From 1f548c01df408afeca70c97e7a0c77906dc32df1 Mon Sep 17 00:00:00 2001 From: Martin Edenhofer Date: Sun, 26 Jun 2016 01:42:59 +0200 Subject: [PATCH] Improved timings for test. --- test/integration/facebook_test.rb | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/test/integration/facebook_test.rb b/test/integration/facebook_test.rb index 91807e713..23d27fe94 100644 --- a/test/integration/facebook_test.rb +++ b/test/integration/facebook_test.rb @@ -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