Skip to content

Commit

Permalink
yegor256#306: fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
lautarobock committed Jun 25, 2015
1 parent e5eec13 commit 65f894a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/test/java/org/takes/http/BkBasicTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ public void handlesSocket() throws IOException {
@SuppressWarnings("PMD.DoNotUseThreads")
public void handlesPersistentConnection() throws Exception {
final int port = new Ports().allocate();
final String uri = String.format("http://localhost:%d", port);
final String uri = String.format("http://localhost:%d/init", port);
// @checkstyle MagicNumberCheck (1 line)
final int count = 1;
final CountDownLatch completed = new CountDownLatch(count);
Expand All @@ -124,7 +124,7 @@ public Response act(final Request req)
public void run() {
try {
new FtBasic(
new BkBasic(take),
new BkBasic(new TkFork(new FkRegex("/init", take))),
port
).start(
new Exit() {
Expand Down

0 comments on commit 65f894a

Please sign in to comment.