Skip to content

Commit f476a4f

Browse files
committed
fix last failing test
1 parent 57889b4 commit f476a4f

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

bin/utils/test_file_list.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@
3636
- filename: "samples/client/petstore/java/okhttp-gson-3.1/src/test/java/org/openapitools/client/api/PetApiTest.java"
3737
sha256: d8f7fff724f81e666daf115cc25f8347e1fda4e861aa30df0dae3fa50c91404c
3838
- filename: "samples/client/petstore/java/okhttp-gson-dynamicOperations/src/test/java/org/openapitools/client/api/PetApiTest.java"
39-
sha256: 5fc397856b79562bb49082658dbc44a62f342834b1e510fe75545a7566e363af
39+
sha256: 0cc079be64fe261b46f89976be2cbfad4fe5173dbe0d4b45303570299b0b5ecc
4040
- filename: "samples/client/petstore/java/okhttp-gson-dynamicOperations/src/test/java/org/openapitools/client/model/ArrayOfArrayOfNumberOnlyTest.java"
4141
sha256: 3c41eb12d126f90392d97e3250b53ea9dce1663fb714a19339445b9da734d634
4242
- filename: "samples/client/petstore/java/resteasy/src/test/java/org/openapitools/client/api/PetApiTest.java"

samples/client/petstore/java/okhttp-gson-dynamicOperations/src/test/java/org/openapitools/client/api/PetApiTest.java

+2-1
Original file line numberDiff line numberDiff line change
@@ -206,7 +206,8 @@ public void onDownloadProgress(long bytesRead, long contentLength, boolean done)
206206
} while (result.isEmpty());
207207
assertNotNull(exception);
208208
assertEquals(404, exception.getCode());
209-
assertEquals("Not Found", exception.getMessage());
209+
String pattern = "^Message: Not Found\\RHTTP response code: 404\\RHTTP response body: .*\\RHTTP response headers: .*$";
210+
assertTrue(exception.getMessage().matches(pattern));
210211
assertEquals("application/json", exception.getResponseHeaders().get("Content-Type").get(0));
211212
api.deletePet(pet.getId(), null);
212213
}

0 commit comments

Comments
 (0)