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

@@ -157,6 +157,8 @@ class DanbooruHttpTest < ActiveSupport::TestCase
context "unpolish cloudflare feature" do
should "return the original image for polished images" do
skip if ENV["CI"].present?
url = "https://cdnb.artstation.com/p/assets/images/images/025/273/307/4k/atey-ghailan-a-sage-keyart-s-ch-04-outlined-1.jpg?1585246642"
response = Danbooru::Http.use(:unpolish_cloudflare).get(url)