Skip to content

Commit

Permalink
increate test delay to 50 to see if github can run it
Browse files Browse the repository at this point in the history
  • Loading branch information
mukatee committed Sep 20, 2020
1 parent 7f1d7d3 commit 961ab70
Show file tree
Hide file tree
Showing 10 changed files with 17 additions and 17 deletions.
2 changes: 1 addition & 1 deletion test/net/kanstren/tcptunnel/capture/gzip/GZipTests.java
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ public void networkGzip() throws Exception {
//this is how we actually start the tunnel
Main main = new Main(params);
main.start();
Thread.sleep(10);
Thread.sleep(50);
//send a test request to get some data in the tunnel
byte[] response = TCPMsgSender.sendGZGet("http://localhost:"+proxyPort+"/gzip");
//check we got the a GZIP encoded response
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ public void captureIntList() throws Exception {
//this is how we actually start the tunnel
Main main = new Main(params);
main.start();
Thread.sleep(10);
Thread.sleep(50);
//send a test request to get some data in the tunnel
String response = TCPMsgSender.send2("localhost", proxyPort, "hi there");
//check we got the correct response from the server
Expand Down Expand Up @@ -66,7 +66,7 @@ public void captureHexString() throws Exception {
//this is how we actually start the tunnel
Main main = new Main(params);
main.start();
Thread.sleep(10);
Thread.sleep(50);
//send a test request to get some data in the tunnel
String response = TCPMsgSender.send2("localhost", proxyPort, "hi there hex boy");
//check we got the correct response from the server
Expand Down Expand Up @@ -95,7 +95,7 @@ public void captureString() throws Exception {
//this is how we actually start the tunnel
Main main = new Main(params);
main.start();
Thread.sleep(10);
Thread.sleep(50);
//send a test request to get some data in the tunnel
String response = TCPMsgSender.send2("localhost", proxyPort, "hi there");
//check we got the correct response from the server
Expand Down Expand Up @@ -125,7 +125,7 @@ public void captureStringExtraLF() throws Exception {
//this is how we actually start the tunnel
Main main = new Main(params);
main.start();
Thread.sleep(10);
Thread.sleep(50);
//send a test request to get some data in the tunnel
String response = TCPMsgSender.send2("localhost", proxyPort, "hi there");
//check we got the correct response from the server
Expand Down
4 changes: 2 additions & 2 deletions test/net/kanstren/tcptunnel/capture/tcp/FileLoggingTests.java
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ public void captureTextBytes() throws Exception {
//this is how we actually start the tunnel
Main main = new Main(params);
main.start();
Thread.sleep(10);
Thread.sleep(50);
//send a test request to get some data in the tunnel
String response = TCPMsgSender.send2("localhost", proxyPort, "hi there");
//check we got the correct response from the server
Expand Down Expand Up @@ -78,7 +78,7 @@ public void captureBinaryBytes() throws Exception {
//this is how we actually start the tunnel
Main main = new Main(params);
main.start();
Thread.sleep(10);
Thread.sleep(50);
//send a test request to get some data in the tunnel
byte[] response = TCPMsgSender.send2("localhost", proxyPort, ultestBytes);
//check we got the correct response from the server
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ public void sendRequestMITM() throws Exception {
//this is how we actually start the tunnel
Main main = new Main(params);
main.start();
Thread.sleep(10);
Thread.sleep(50);
//send a test request to get some data in the tunnel
String response = TCPMsgSender.send2("localhost", proxyPort, "hi there");
//check we got the correct response from the server
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ public void mirrorUpStream() throws Exception {
//this is how we actually start the tunnel
Main main = new Main(params);
main.start();
Thread.sleep(10);
Thread.sleep(50);
//send a test request to get some data in the tunnel
String response = TCPMsgSender.send2("localhost", proxyPort, "hi there");
//check we got the correct response from the server
Expand Down Expand Up @@ -83,7 +83,7 @@ public void mirrorDownStream() throws Exception {
//this is how we actually start the tunnel
Main main = new Main(params);
main.start();
Thread.sleep(10);
Thread.sleep(50);
//send a test request to get some data in the tunnel
String response = TCPMsgSender.send2("localhost", proxyPort, "hi there");
//check we got the correct response from the server
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ public static void main(String[] args) throws Exception {

public void start() throws Exception {
new Thread(this).start();
Thread.sleep(10);
Thread.sleep(50);
}

public String getReceiveString() {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ public void captureHexString() throws Exception {
//this is how we actually start the tunnel
Main main = new Main(params);
main.start();
Thread.sleep(10);
Thread.sleep(50);
sendAndReadResponse("hi there hex boy", "expected_console2.txt");
}

Expand All @@ -85,7 +85,7 @@ public void captureString() throws Exception {
//this is how we actually start the tunnel
Main main = new Main(params);
main.start();
Thread.sleep(10);
Thread.sleep(50);
sendAndReadResponse("hi there\n", "expected_console3.txt");
}

Expand Down
4 changes: 2 additions & 2 deletions test/net/kanstren/tcptunnel/capture/udp/FileLoggingTests.java
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ public void captureTextBytes() throws Exception {
//this is how we actually start the tunnel
Main main = new Main(params);
main.start();
Thread.sleep(10);
Thread.sleep(50);
//send a test request to get some data in the tunnel
UDPMsgSender.send2("localhost", proxyPort, "hi there");
Thread.sleep(300);
Expand Down Expand Up @@ -84,7 +84,7 @@ public void captureBinaryBytes() throws Exception {
//this is how we actually start the tunnel
Main main = new Main(params);
main.start();
Thread.sleep(10);
Thread.sleep(50);
//send a test request to get some data in the tunnel
UDPMsgSender.send2("localhost", proxyPort, ultestBytes);
Thread.sleep(300);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ public void sendRequestMITM() throws Exception {
//this is how we actually start the tunnel
Main main = new Main(params);
main.start();
Thread.sleep(10);
Thread.sleep(50);
//send a test request to get some data in the tunnel
UDPMsgSender.send2("localhost", proxyPort, "hi there");
Thread.sleep(500);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ public void mirrorUpStream() throws Exception {
//this is how we actually start the tunnel
Main main = new Main(params);
main.start();
Thread.sleep(10);
Thread.sleep(50);

//send a test request to get some data in the tunnel
UDPMsgSender.send2("localhost", proxyPort, "hi there");
Expand Down

0 comments on commit 961ab70

Please sign in to comment.