Skip to content

Commit d4a8941

Browse files
committed
Simplify the test; doesn't need the buffer
1 parent 823709f commit d4a8941

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/test/java/org/jsoup/integration/ConnectTest.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -424,7 +424,7 @@ public void multipleParsesOkAfterBufferUp() throws IOException {
424424

425425
@Test
426426
public void bufferedParseWorksWhenCharsetDetectionFullyReadsResponse() throws IOException {
427-
Connection.Response res = Jsoup.connect(FileServlet.urlTo("/htmltests/charset-base.html")).execute().bufferUp();
427+
Connection.Response res = Jsoup.connect(FileServlet.urlTo("/htmltests/charset-base.html")).execute();
428428

429429
Document doc = res.parse();
430430
assertEquals("UTF-8", res.charset());
@@ -434,7 +434,7 @@ public void bufferedParseWorksWhenCharsetDetectionFullyReadsResponse() throws IO
434434
@Test
435435
public void bufferedStreamParserWorksWhenCharsetDetectionFullyReadsResponse() throws IOException {
436436
// https://github.com/jhy/jsoup/issues/2483
437-
Connection.Response res = Jsoup.connect(FileServlet.urlTo("/htmltests/charset-base.html")).execute().bufferUp();
437+
Connection.Response res = Jsoup.connect(FileServlet.urlTo("/htmltests/charset-base.html")).execute();
438438

439439
Document doc = res.streamParser().complete();
440440
assertEquals("UTF-8", res.charset());

0 commit comments

Comments
 (0)