Skip to content

Commit

Permalink
yegor256#306: fix qlice
Browse files Browse the repository at this point in the history
  • Loading branch information
lautarobock committed Jun 23, 2015
1 parent e4b7ade commit b423d84
Showing 1 changed file with 2 additions and 7 deletions.
9 changes: 2 additions & 7 deletions src/test/java/org/takes/http/BkBasicTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,6 @@
import com.google.common.base.Joiner;
import com.jcabi.http.request.JdkRequest;
import com.jcabi.http.response.RestResponse;

import java.io.ByteArrayInputStream;
import java.io.ByteArrayOutputStream;
import java.io.IOException;
Expand All @@ -37,7 +36,6 @@
import java.net.URL;
import java.util.concurrent.CountDownLatch;
import java.util.concurrent.TimeUnit;

import org.hamcrest.MatcherAssert;
import org.hamcrest.Matchers;
import org.junit.Test;
Expand Down Expand Up @@ -116,6 +114,7 @@ public void handlesPersistentConnection() throws Exception {
@Override
public Response act(final Request req)
throws IOException {
System.out.println("ACA");
return new TkEmpty().act(req);
}
};
Expand Down Expand Up @@ -148,11 +147,7 @@ public boolean ready() {
conn.setRequestMethod("GET");
conn.setUseCaches(false);
conn.setInstanceFollowRedirects(false);
conn.addRequestProperty("Host","localhost");
MatcherAssert.assertThat(
conn.getHeaderFields(),
Matchers.hasKey("Connection")
);
conn.addRequestProperty("Host", "localhost");
MatcherAssert.assertThat(
conn.getHeaderFields().get("Connection"),
Matchers.hasItem("Keep-Alive")
Expand Down

0 comments on commit b423d84

Please sign in to comment.