Skip to content

Commit

Permalink
Disables test on github actions
Browse files Browse the repository at this point in the history
  • Loading branch information
spencergibb committed Mar 15, 2024
1 parent 2d1b7fa commit e1c52ca
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
package org.springframework.cloud.gateway.filter.factory;

import org.junit.jupiter.api.Test;
import org.junit.jupiter.api.condition.DisabledIfEnvironmentVariable;

import org.springframework.cloud.gateway.test.BaseWebClientTests;
import org.springframework.http.HttpStatus;
Expand Down Expand Up @@ -92,6 +93,7 @@ public void filterConnectFailure() {
}

@Test
@DisabledIfEnvironmentVariable(named = "GITHUB_ACTIONS", matches = "true")
public void filterErrorPage() {
testClient.get().uri("/delay/3").header("Host", "www.circuitbreakerconnectfail.org").accept(APPLICATION_JSON)
.exchange().expectStatus().is5xxServerError().expectBody().jsonPath("$.status").isEqualTo(504)
Expand Down

0 comments on commit e1c52ca

Please sign in to comment.