diff --git a/.harness/test_long_branch_names.yaml b/.harness/test_long_branch_names.yaml index 3a34ea9..e8a8bac 100644 --- a/.harness/test_long_branch_names.yaml +++ b/.harness/test_long_branch_names.yaml @@ -23,6 +23,7 @@ pipeline: type: Run name: asd identifier: asd + timeout: 20h spec: connectorRef: account.testSecret image: ad diff --git a/README.md b/README.md index e7f7ba5..31d5202 100644 --- a/README.md +++ b/README.md @@ -21,13 +21,13 @@ It creates a self-contained, executable JAR in the `target` directory. -h,--help display help -p,--port port to listen (default: 8888) -r,--root server root directory (default: '.') - -t,--threads thread pool size (default: 10) + -t,--threads thread pool size (default: 11) ### Demo * [Change background color](src/main/java/io/harness/jhttp/processor/DirectoryListing.java) * [Update a test](src/test/java/io/harness/jhttp/server/HeaderListTest.java) * [Update README](README.md) - + diff --git a/src/main/java/io/harness/jhttp/processor/DirectoryListing.java b/src/main/java/io/harness/jhttp/processor/DirectoryListing.java index eddd69c..8218f78 100644 --- a/src/main/java/io/harness/jhttp/processor/DirectoryListing.java +++ b/src/main/java/io/harness/jhttp/processor/DirectoryListing.java @@ -44,7 +44,7 @@ public boolean process(HttpRequest request, HttpResponse response) { private void appendLink(String fileName, String uri, PrintWriter writer) { // writer.append(String.format("
  • \n%s\n
  • \n", uri, fileName, fileName)); - writer.append(String.format("
  • \n%s\n
  • \n", uri, fileName, fileName)); + writer.append(String.format("
  • \n%s\n
  • \n", uri, fileName, fileName)); // writer.append(String.format("
  • \n%s\n
  • \n", uri, fileName, fileName)); } diff --git a/src/test/java/io/harness/jhttp/functional/HttpClientTest.java b/src/test/java/io/harness/jhttp/functional/HttpClientTest.java index e484c12..79f1979 100644 --- a/src/test/java/io/harness/jhttp/functional/HttpClientTest.java +++ b/src/test/java/io/harness/jhttp/functional/HttpClientTest.java @@ -94,11 +94,11 @@ public void testStaticFile2234() throws IOException , InterruptedException { testRequest("/file2.html", "/http-server/server-root/file2.html"); } - + //faill @Test public void testStaticFile2341() throws IOException, InterruptedException { Thread.sleep(10000); // sleep 10 sec - testRequest("/file1.html", "/http-server/server-root/file1.html"); + testRequest("/file1.html", "/http-server/server-root/file6.html"); testRequest("/file2.html", "/http-server/server-root/file2.html"); }