tests: fix more spurious test failures in CI.

* Skip Nijie tests because they fail a lot due to Nijie rate limiting us.
* Skip ArtStation downloads tests because they sometimes return different file sizes.
* Fix random duplicate favgroup errors because favgroup names weren't random enough.
This commit is contained in:
evazion
2021-10-01 18:02:01 -05:00
parent 5ef231e1dc
commit cdd46b0ac5
4 changed files with 6 additions and 3 deletions

View File

@@ -4,8 +4,7 @@ module Sources
class NijieTest < ActiveSupport::TestCase
setup do
skip "Nijie credentials not configured" unless Sources::Strategies::Nijie.enabled?
# Add a random delay to work around test failures due to rate limiting by Nijie.
sleep (3..5).to_a.sample
skip if ENV["CI"].present?
end
context "downloading a 'http://nijie.info/view.php?id=:id' url" do