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
class WeiboTest < ActiveSupport::TestCase
setup do
# Add a random delay to work around test failures due to rate limiting by Weibo.
sleep (3..5).to_a.sample
# Skip in CI to work around test failures due to rate limiting by Weibo.
skip if ENV["CI"].present?
end
context "A post with multiple pictures" do