tests: skip weibo tests in CI.

Weibo tests keep failing randomly in CI. Give up and skip them to
prevent them from always marking commits as failed.
This commit is contained in:
evazion
2021-09-20 02:17:31 -05:00
parent 98b3c82ac5
commit b7b6797b18

View File

@@ -3,8 +3,8 @@ require 'test_helper'
module Sources module Sources
class WeiboTest < ActiveSupport::TestCase class WeiboTest < ActiveSupport::TestCase
setup do setup do
# Add a random delay to work around test failures due to rate limiting by Weibo. # Skip in CI to work around test failures due to rate limiting by Weibo.
sleep (3..5).to_a.sample skip if ENV["CI"].present?
end end
context "A post with multiple pictures" do context "A post with multiple pictures" do