Skip to content

Commit b8d0699

Browse files
committed
Fix invalid test
1 parent db1a20e commit b8d0699

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/test/java/io/vertx/core/http/Http1xTest.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1369,7 +1369,7 @@ private void testServerConnectionClose(boolean sendEarlyResponse) throws Excepti
13691369
NetClient client = vertx.createNetClient();
13701370
client.connect(testAddress, onSuccess(so -> {
13711371
so.write(
1372-
"PUT / HTTP/1.1 \r\n" +
1372+
"PUT / HTTP/1.1\r\n" +
13731373
"connection: close\r\n" +
13741374
"content-length: 1\r\n" +
13751375
"\r\n");
@@ -1386,7 +1386,7 @@ private void testServerConnectionClose(boolean sendEarlyResponse) throws Excepti
13861386
Buffer response = Buffer.buffer();
13871387
so.handler(response::appendBuffer);
13881388
so.closeHandler(v -> {
1389-
assertTrue(response.toString().startsWith("HTTP/1.1 200 OK"));
1389+
assertTrue("Expected <" + response + "> to start with HTTP/1.1 200 OK", response.toString().startsWith("HTTP/1.1 200 OK"));
13901390
testComplete();
13911391
});
13921392
}));

0 commit comments

Comments
 (0)