Commit 2189aab6 authored by yihua.huang's avatar yihua.huang

fix test

parent 228911b5
...@@ -4,7 +4,6 @@ import org.apache.http.HttpHost; ...@@ -4,7 +4,6 @@ import org.apache.http.HttpHost;
import org.junit.BeforeClass; import org.junit.BeforeClass;
import org.junit.Test; import org.junit.Test;
import java.io.File;
import java.util.ArrayList; import java.util.ArrayList;
import java.util.List; import java.util.List;
...@@ -33,7 +32,6 @@ public class ProxyTest { ...@@ -33,7 +32,6 @@ public class ProxyTest {
SimpleProxyPool proxyPool = new SimpleProxyPool(httpProxyList,false); SimpleProxyPool proxyPool = new SimpleProxyPool(httpProxyList,false);
proxyPool.setReuseInterval(500); proxyPool.setReuseInterval(500);
assertThat(proxyPool.getIdleNum()).isEqualTo(4); assertThat(proxyPool.getIdleNum()).isEqualTo(4);
assertThat(new File(proxyPool.getProxyFilePath()).exists()).isEqualTo(true);
for (int i = 0; i < 2; i++) { for (int i = 0; i < 2; i++) {
List<Fetch> fetchList = new ArrayList<Fetch>(); List<Fetch> fetchList = new ArrayList<Fetch>();
while (proxyPool.getIdleNum() != 0) { while (proxyPool.getIdleNum() != 0) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment