Skip to content

Commit bde69cb

Browse files
committed
Disabling tests for Linux
1 parent a12aa3a commit bde69cb

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/test/java/jodd/http/ProxyTest.java

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,8 @@
3131
import org.junit.jupiter.api.BeforeEach;
3232
import org.junit.jupiter.api.Disabled;
3333
import org.junit.jupiter.api.Test;
34+
import org.junit.jupiter.api.condition.EnabledOnOs;
35+
import org.junit.jupiter.api.condition.OS;
3436
import org.mockserver.integration.ClientAndProxy;
3537
import org.mockserver.integration.ClientAndServer;
3638
import org.mockserver.model.Header;
@@ -70,6 +72,7 @@ void testDirect() {
7072
}
7173

7274
@Test
75+
@EnabledOnOs({OS.MAC})
7376
void testDirectHttps() {
7477
final HttpResponse response = HttpRequest.get("https://localhost:1080/get_books").trustAllCerts(true).send();
7578
assertEquals(200, response.statusCode());
@@ -104,6 +107,7 @@ void testSocks5Proxy() {
104107
}
105108

106109
@Test
110+
@EnabledOnOs({OS.MAC})
107111
void testSocks5ProxyWithHttps() {
108112
final SocketHttpConnectionProvider s = new SocketHttpConnectionProvider();
109113
s.useProxy(ProxyInfo.socks5Proxy("localhost", 1090, null, null));

0 commit comments

Comments
 (0)