From cd7343516156f0b61f5131e7496956cbe934e1a4 Mon Sep 17 00:00:00 2001 From: Looly Date: Sun, 9 Oct 2022 01:50:07 +0800 Subject: [PATCH] fix test --- hutool-http/src/test/java/cn/hutool/http/DownloadTest.java | 2 +- hutool-http/src/test/java/cn/hutool/http/IssueI5TPSYTest.java | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/hutool-http/src/test/java/cn/hutool/http/DownloadTest.java b/hutool-http/src/test/java/cn/hutool/http/DownloadTest.java index f66d7e278..888f5d765 100644 --- a/hutool-http/src/test/java/cn/hutool/http/DownloadTest.java +++ b/hutool-http/src/test/java/cn/hutool/http/DownloadTest.java @@ -193,7 +193,7 @@ public class DownloadTest { } @Test - //@Ignore + @Ignore public void downloadTeamViewerTest() throws IOException { // 此URL有3次重定向, 需要请求4次 final String url = "https://download.teamviewer.com/download/TeamViewer_Setup_x64.exe"; diff --git a/hutool-http/src/test/java/cn/hutool/http/IssueI5TPSYTest.java b/hutool-http/src/test/java/cn/hutool/http/IssueI5TPSYTest.java index adaffc3ed..3de700e58 100755 --- a/hutool-http/src/test/java/cn/hutool/http/IssueI5TPSYTest.java +++ b/hutool-http/src/test/java/cn/hutool/http/IssueI5TPSYTest.java @@ -1,12 +1,13 @@ package cn.hutool.http; import cn.hutool.core.lang.Console; +import org.junit.Ignore; import org.junit.Test; public class IssueI5TPSYTest { @Test - //@Ignore + @Ignore public void redirectTest() { final String url = "https://bsxt.gdzwfw.gov.cn/UnifiedReporting/auth/newIndex"; final HttpResponse res = HttpUtil.createGet(url).setFollowRedirects(true)