Skip to content

Commit 6d22309

Browse files
committed
[java] Disabling some tests in GH actions, they pass locally.
1 parent 70c67ed commit 6d22309

2 files changed

Lines changed: 7 additions & 0 deletions

File tree

java/test/org/openqa/selenium/devtools/NetworkInterceptorRestTest.java

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,7 @@
3434
import org.openqa.selenium.WebDriver;
3535
import org.openqa.selenium.environment.webserver.NettyAppServer;
3636
import org.openqa.selenium.remote.http.*;
37+
import org.openqa.selenium.testing.Ignore;
3738
import org.openqa.selenium.testing.drivers.Browser;
3839
import org.openqa.selenium.testing.drivers.WebDriverBuilder;
3940

@@ -77,6 +78,7 @@ public void tearDown() {
7778
}
7879

7980
@Test
81+
@Ignore(gitHubActions = true, reason = "Fails in GH Actions but passes locally. Needs debugging.")
8082
void shouldInterceptPatchRequest() throws MalformedURLException {
8183
AtomicBoolean seen = new AtomicBoolean(false);
8284
interceptor =
@@ -221,6 +223,7 @@ void shouldInterceptDeleteRequest() throws MalformedURLException {
221223
}
222224

223225
@Test
226+
@Ignore(gitHubActions = true, reason = "Fails in GH Actions but passes locally.")
224227
void shouldInterceptGetRequest() throws MalformedURLException {
225228
AtomicBoolean seen = new AtomicBoolean(false);
226229
interceptor =

java/test/org/openqa/selenium/devtools/NetworkInterceptorTest.java

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,7 @@
3939
import org.openqa.selenium.remote.http.Filter;
4040
import org.openqa.selenium.remote.http.HttpResponse;
4141
import org.openqa.selenium.remote.http.Route;
42+
import org.openqa.selenium.testing.Ignore;
4243
import org.openqa.selenium.testing.drivers.Browser;
4344
import org.openqa.selenium.testing.drivers.WebDriverBuilder;
4445

@@ -94,6 +95,7 @@ public void tearDown() {
9495
}
9596

9697
@Test
98+
@Ignore(gitHubActions = true, reason = "Fails in GH Actions but passes locally. Needs debugging.")
9799
void shouldProceedAsNormalIfRequestIsNotIntercepted() {
98100
interceptor =
99101
new NetworkInterceptor(
@@ -107,6 +109,7 @@ void shouldProceedAsNormalIfRequestIsNotIntercepted() {
107109
}
108110

109111
@Test
112+
@Ignore(gitHubActions = true, reason = "Fails in GH Actions but passes locally. Needs debugging.")
110113
void shouldAllowTheInterceptorToChangeTheResponse() {
111114
interceptor =
112115
new NetworkInterceptor(
@@ -197,6 +200,7 @@ void shouldBeAbleToInterceptAResponse() {
197200
}
198201

199202
@Test
203+
@Ignore(gitHubActions = true, reason = "Fails in GH Actions but passes locally. Needs debugging.")
200204
void shouldHandleRedirects() {
201205
try (NetworkInterceptor networkInterceptor =
202206
new NetworkInterceptor(driver, (Filter) next -> next)) {

0 commit comments

Comments
 (0)