Skip to content

Commit 634ebb5

Browse files
authored
Fixed fetch test
1 parent a054dbb commit 634ebb5

2 files changed

Lines changed: 4 additions & 11 deletions

File tree

.github/workflows/maven.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ jobs:
5555
run: mvn -B -f examples/pom.xml package
5656
- name: Build spring-boot
5757
run: mvn -B -f spring-boot-example/pom.xml package
58-
- uses: codecov/codecov-action@v5
58+
- uses: codecov/codecov-action@v7
5959
with:
6060
files: target/site/jacoco/jacoco.xml
6161
name: codecov

src/test/java/com/github/underscore/LodashTest.java

Lines changed: 3 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -743,7 +743,7 @@ void fetchPut() {
743743
assertEquals(404, result2.getStatus());
744744
U.Chain<String> resultChain =
745745
U.chain(
746-
"http://support.oneskyapp.com/hc/en-us/article_attachments/202761627/example_1.json")
746+
"http://www.w3schools.com/xml/note.xml")
747747
.fetch(
748748
"PUT",
749749
"{"
@@ -754,15 +754,8 @@ void fetchPut() {
754754
+ " \"fireBreath\": 10"
755755
+ " }"
756756
+ "}");
757-
assertEquals(
758-
"<html>\n"
759-
+ "<head><title>301 Moved Permanently</title></head>\n"
760-
+ "<body>\n"
761-
+ "<center><h1>301 Moved Permanently</h1></center>\n"
762-
+ "<hr><center>nginx</center>\n"
763-
+ "</body>\n"
764-
+ "</html>\n",
765-
resultChain.item().replace("\r\n", "\n"));
757+
assertTrue(
758+
resultChain.item().replace("\r\n", "\n").startsWith("\n<!DOCTYPE html>\n<html lang=\"en\">"));
766759
}
767760

768761
static class TestInputStream extends java.io.InputStream {

0 commit comments

Comments
 (0)