Skip to content

Commit 9fffe5d

Browse files
committed
chore: Fix tests
1 parent 79917e6 commit 9fffe5d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

oauth2_http/javatests/com/google/auth/oauth2/MockMetadataServerTransport.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -141,7 +141,7 @@ public LowLevelHttpRequest buildRequest(String method, String url) throws IOExce
141141
new MockLowLevelHttpRequest(url) {
142142
@Override
143143
public LowLevelHttpResponse execute() {
144-
if (statusCode != null && (statusCode > 400 && statusCode < 500)) {
144+
if (statusCode != null && (statusCode >= 400 && statusCode < 600)) {
145145
return new MockLowLevelHttpResponse()
146146
.setStatusCode(statusCode)
147147
.setContent("Metadata Error");
@@ -197,7 +197,7 @@ private MockLowLevelHttpRequest getMockRequestForTokenEndpoint(String url) {
197197
@Override
198198
public LowLevelHttpResponse execute() throws IOException {
199199

200-
if (statusCode != null && (statusCode > 400 && statusCode < 500)) {
200+
if (statusCode != null && (statusCode >= 400 && statusCode < 600)) {
201201
return new MockLowLevelHttpResponse()
202202
.setStatusCode(statusCode)
203203
.setContent("Token Fetch Error");

0 commit comments

Comments
 (0)