From 6ea2c934fd0197f4e13c4d3a316125afb5e7c732 Mon Sep 17 00:00:00 2001 From: evazion Date: Mon, 22 Jun 2020 22:54:41 -0500 Subject: [PATCH] tests: temp skip failing danbooru::http redirect tests. Skip for now until https://github.com/postmanlabs/httpbin/issues/617 is fixed. --- test/unit/danbooru_http_test.rb | 3 +++ 1 file changed, 3 insertions(+) diff --git a/test/unit/danbooru_http_test.rb b/test/unit/danbooru_http_test.rb index aa73976ea..79ba9e0d5 100644 --- a/test/unit/danbooru_http_test.rb +++ b/test/unit/danbooru_http_test.rb @@ -11,11 +11,13 @@ class DanbooruHttpTest < ActiveSupport::TestCase end should "follow redirects" do + skip "Skipping test (https://github.com/postmanlabs/httpbin/issues/617)" response = Danbooru::Http.get("https://httpbin.org/absolute-redirect/3") assert_equal(200, response.status) end should "fail if redirected too many times" do + skip "Skipping test (https://github.com/postmanlabs/httpbin/issues/617)" response = Danbooru::Http.get("https://httpbin.org/absolute-redirect/10") assert_equal(598, response.status) end @@ -134,6 +136,7 @@ class DanbooruHttpTest < ActiveSupport::TestCase end should "follow redirects when downloading files" do + skip "Skipping test (https://github.com/postmanlabs/httpbin/issues/617)" response, file = Danbooru::Http.download_media("https://httpbin.org/redirect-to?url=https://httpbin.org/bytes/1000") assert_equal(200, response.status)