@@ -1206,30 +1206,30 @@ public void maxRequestSize() {
12061206 app .post ("/request-size" , ctx -> ctx .body ().value ());
12071207
12081208 app .get ("/request-size" , ctx -> ctx .body ().value ());
1209- }).ready (client -> {
1209+ }).ready (( client , server ) -> {
12101210 // Exceeds
12111211 client .post ("/request-size" , RequestBody .create (MediaType .get ("text/plain" ), _19kb ), rsp -> {
1212- assertEquals (413 , rsp .code ());
1212+ assertEquals (413 , rsp .code (), server . getClass (). getSimpleName () );
12131213 });
12141214 // Chunk by chunk
12151215 client .post ("/request-size" , RequestBody .create (MediaType .get ("text/plain" ), _16kb ), rsp -> {
12161216 assertEquals (200 , rsp .code ());
1217- assertEquals (_16kb , rsp .body ().string ());
1217+ assertEquals (_16kb , rsp .body ().string (), server . getClass (). getSimpleName () );
12181218 });
12191219 // Single read
12201220 client .post ("/request-size" , RequestBody .create (MediaType .get ("text/plain" ), _8kb ), rsp -> {
12211221 assertEquals (200 , rsp .code ());
1222- assertEquals (_8kb , rsp .body ().string ());
1222+ assertEquals (_8kb , rsp .body ().string (), server . getClass (). getSimpleName () );
12231223 });
12241224 // Empty
12251225 client .post ("/request-size" , RequestBody .create (MediaType .get ("text/plain" ), "" ), rsp -> {
12261226 assertEquals (200 , rsp .code ());
1227- assertEquals ("" , rsp .body ().string ());
1227+ assertEquals ("" , rsp .body ().string (), server . getClass (). getSimpleName () );
12281228 });
12291229 // No body
12301230 client .get ("/request-size" , rsp -> {
12311231 assertEquals (200 , rsp .code ());
1232- assertEquals ("" , rsp .body ().string ());
1232+ assertEquals ("" , rsp .body ().string (), server . getClass (). getSimpleName () );
12331233 });
12341234 });
12351235 }
0 commit comments