Skip to content

Commit b7880a1

Browse files
committed
test: add --debug for suo5
1 parent f5315a4 commit b7880a1

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

tools/suo5/src/main/java/com/reajason/javaweb/suo5/Suo5Manager.java

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
package com.reajason.javaweb.suo5;
22

3+
import org.apache.commons.lang3.StringUtils;
4+
35
import java.io.BufferedReader;
46
import java.io.InputStreamReader;
57
import java.nio.file.Path;
@@ -31,13 +33,13 @@ public class Suo5Manager {
3133

3234
public static void main(String[] args) {
3335
System.out.println(suo5Command);
34-
boolean test = test("http://localhost:32953/app/test", "test");
36+
boolean test = test("http://localhost:8082/app/test", "test");
3537
System.out.println(test);
3638
}
3739

3840
public static boolean test(String targetUrl, String ua) {
3941
ProcessBuilder processBuilder = new ProcessBuilder(
40-
suo5Command, "-t", targetUrl, "--timeout", "5", "-ua", ua, "-H", "Referer: " + targetUrl
42+
suo5Command, "-debug", "-t", targetUrl, "--timeout", "5", "-ua", ua, "-H", "Referer: " + targetUrl
4143
);
4244
processBuilder.redirectErrorStream(true);
4345
ExecutorService executor = Executors.newSingleThreadExecutor();

0 commit comments

Comments
 (0)