From 961ab705409113d4818fb763de676a736ae06289 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Teemu=20Kanstr=C3=A9n?= Date: Sun, 20 Sep 2020 23:57:20 +0300 Subject: [PATCH] increate test delay to 50 to see if github can run it --- test/net/kanstren/tcptunnel/capture/gzip/GZipTests.java | 2 +- .../tcptunnel/capture/tcp/ConsoleLoggingTests.java | 8 ++++---- .../kanstren/tcptunnel/capture/tcp/FileLoggingTests.java | 4 ++-- .../tcptunnel/capture/tcp/InMemoryCaptureTests.java | 2 +- .../tcptunnel/capture/tcp/MirrorLoggingTests.java | 4 ++-- .../kanstren/tcptunnel/capture/tcp/TCPTestServer2.java | 2 +- .../tcptunnel/capture/udp/ConsoleLoggingTests.java | 4 ++-- .../kanstren/tcptunnel/capture/udp/FileLoggingTests.java | 4 ++-- .../tcptunnel/capture/udp/InMemoryCaptureTests.java | 2 +- .../tcptunnel/capture/udp/MirrorLoggingTests.java | 2 +- 10 files changed, 17 insertions(+), 17 deletions(-) diff --git a/test/net/kanstren/tcptunnel/capture/gzip/GZipTests.java b/test/net/kanstren/tcptunnel/capture/gzip/GZipTests.java index d90423f..bb772a1 100644 --- a/test/net/kanstren/tcptunnel/capture/gzip/GZipTests.java +++ b/test/net/kanstren/tcptunnel/capture/gzip/GZipTests.java @@ -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 diff --git a/test/net/kanstren/tcptunnel/capture/tcp/ConsoleLoggingTests.java b/test/net/kanstren/tcptunnel/capture/tcp/ConsoleLoggingTests.java index a90b582..1d4eab2 100644 --- a/test/net/kanstren/tcptunnel/capture/tcp/ConsoleLoggingTests.java +++ b/test/net/kanstren/tcptunnel/capture/tcp/ConsoleLoggingTests.java @@ -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 @@ -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 @@ -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 @@ -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 diff --git a/test/net/kanstren/tcptunnel/capture/tcp/FileLoggingTests.java b/test/net/kanstren/tcptunnel/capture/tcp/FileLoggingTests.java index 143e8e1..06fbea7 100644 --- a/test/net/kanstren/tcptunnel/capture/tcp/FileLoggingTests.java +++ b/test/net/kanstren/tcptunnel/capture/tcp/FileLoggingTests.java @@ -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 @@ -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 diff --git a/test/net/kanstren/tcptunnel/capture/tcp/InMemoryCaptureTests.java b/test/net/kanstren/tcptunnel/capture/tcp/InMemoryCaptureTests.java index 594df76..4417e27 100644 --- a/test/net/kanstren/tcptunnel/capture/tcp/InMemoryCaptureTests.java +++ b/test/net/kanstren/tcptunnel/capture/tcp/InMemoryCaptureTests.java @@ -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 diff --git a/test/net/kanstren/tcptunnel/capture/tcp/MirrorLoggingTests.java b/test/net/kanstren/tcptunnel/capture/tcp/MirrorLoggingTests.java index d2bccef..e175af5 100644 --- a/test/net/kanstren/tcptunnel/capture/tcp/MirrorLoggingTests.java +++ b/test/net/kanstren/tcptunnel/capture/tcp/MirrorLoggingTests.java @@ -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 @@ -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 diff --git a/test/net/kanstren/tcptunnel/capture/tcp/TCPTestServer2.java b/test/net/kanstren/tcptunnel/capture/tcp/TCPTestServer2.java index cdc6ecf..2483f75 100644 --- a/test/net/kanstren/tcptunnel/capture/tcp/TCPTestServer2.java +++ b/test/net/kanstren/tcptunnel/capture/tcp/TCPTestServer2.java @@ -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() { diff --git a/test/net/kanstren/tcptunnel/capture/udp/ConsoleLoggingTests.java b/test/net/kanstren/tcptunnel/capture/udp/ConsoleLoggingTests.java index 9b3b26a..5e7b064 100644 --- a/test/net/kanstren/tcptunnel/capture/udp/ConsoleLoggingTests.java +++ b/test/net/kanstren/tcptunnel/capture/udp/ConsoleLoggingTests.java @@ -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"); } @@ -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"); } diff --git a/test/net/kanstren/tcptunnel/capture/udp/FileLoggingTests.java b/test/net/kanstren/tcptunnel/capture/udp/FileLoggingTests.java index 23214f6..d731951 100644 --- a/test/net/kanstren/tcptunnel/capture/udp/FileLoggingTests.java +++ b/test/net/kanstren/tcptunnel/capture/udp/FileLoggingTests.java @@ -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); @@ -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); diff --git a/test/net/kanstren/tcptunnel/capture/udp/InMemoryCaptureTests.java b/test/net/kanstren/tcptunnel/capture/udp/InMemoryCaptureTests.java index 9d9f8a8..c28c214 100644 --- a/test/net/kanstren/tcptunnel/capture/udp/InMemoryCaptureTests.java +++ b/test/net/kanstren/tcptunnel/capture/udp/InMemoryCaptureTests.java @@ -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); diff --git a/test/net/kanstren/tcptunnel/capture/udp/MirrorLoggingTests.java b/test/net/kanstren/tcptunnel/capture/udp/MirrorLoggingTests.java index d2e43a5..aa8710e 100644 --- a/test/net/kanstren/tcptunnel/capture/udp/MirrorLoggingTests.java +++ b/test/net/kanstren/tcptunnel/capture/udp/MirrorLoggingTests.java @@ -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");