From 2189aab652639d47dec3d7ee512893638ad899f4 Mon Sep 17 00:00:00 2001 From: "yihua.huang" Date: Tue, 22 Nov 2016 16:58:49 +0800 Subject: [PATCH] fix test --- .../src/test/java/us/codecraft/webmagic/proxy/ProxyTest.java | 2 -- 1 file changed, 2 deletions(-) diff --git a/webmagic-core/src/test/java/us/codecraft/webmagic/proxy/ProxyTest.java b/webmagic-core/src/test/java/us/codecraft/webmagic/proxy/ProxyTest.java index ad2356bb..f2183564 100644 --- a/webmagic-core/src/test/java/us/codecraft/webmagic/proxy/ProxyTest.java +++ b/webmagic-core/src/test/java/us/codecraft/webmagic/proxy/ProxyTest.java @@ -4,7 +4,6 @@ import org.apache.http.HttpHost; import org.junit.BeforeClass; import org.junit.Test; -import java.io.File; import java.util.ArrayList; import java.util.List; @@ -33,7 +32,6 @@ public class ProxyTest { SimpleProxyPool proxyPool = new SimpleProxyPool(httpProxyList,false); proxyPool.setReuseInterval(500); assertThat(proxyPool.getIdleNum()).isEqualTo(4); - assertThat(new File(proxyPool.getProxyFilePath()).exists()).isEqualTo(true); for (int i = 0; i < 2; i++) { List fetchList = new ArrayList(); while (proxyPool.getIdleNum() != 0) {