diff --git a/oauth2_http/javatests/com/google/auth/oauth2/MockMetadataServerTransport.java b/oauth2_http/javatests/com/google/auth/oauth2/MockMetadataServerTransport.java index f8eaf8b84..9777f262b 100644 --- a/oauth2_http/javatests/com/google/auth/oauth2/MockMetadataServerTransport.java +++ b/oauth2_http/javatests/com/google/auth/oauth2/MockMetadataServerTransport.java @@ -316,7 +316,7 @@ public LowLevelHttpResponse execute() throws IOException { // Create the JSON response GenericJson content = new GenericJson(); content.setFactory(OAuth2Utils.JSON_FACTORY); - if (requestStatusCode < 400) { + if (requestStatusCode == 200) { content.put(plaintextS2AAddressJsonKey, plaintextS2AAddress); content.put(mtlsS2AAddressJsonKey, mtlsS2AAddress); }