Skip to content

Commit 7d77299

Browse files
committed
fix test
1 parent 02c8c8c commit 7d77299

File tree

1 file changed

+5
-8
lines changed

1 file changed

+5
-8
lines changed

server/src/test/java/org/elasticsearch/ElasticsearchExceptionTests.java

Lines changed: 5 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1642,20 +1642,17 @@ public void testHttpHeaders() throws IOException {
16421642

16431643
public void testNoExceptionTypeHeaderOn4xx() throws IOException {
16441644
var e = new Exception4xx("some exception");
1645-
assertThat(e.getHeaderKeys(), not(hasItem(ElasticsearchException.EXCEPTION_TYPE_HEADER)));
1645+
assertThat(e.getHttpHeaderKeys(), not(hasItem(ElasticsearchException.EXCEPTION_TYPE_HEADER)));
16461646

16471647
XContentBuilder builder = XContentFactory.jsonBuilder();
16481648
builder.startObject();
16491649
e.toXContent(builder, ToXContent.EMPTY_PARAMS);
16501650
builder.endObject();
16511651
String expected = """
1652-
{
1653-
"type": "exception4xx",
1654-
=======
1655-
"type": "exception",
1656-
>>>>>>> main
1657-
"reason": "some exception"
1658-
}""";
1652+
{
1653+
"type": "exception4xx",
1654+
"reason": "some exception"
1655+
}""";
16591656
assertEquals(XContentHelper.stripWhitespace(expected), Strings.toString(builder));
16601657
}
16611658
}

0 commit comments

Comments
 (0)