Skip to content

Commit 3cd809a

Browse files
authored
Flush response stream in EC2RetriesTests (#114115)
This is apparently necessary when running with JDK23. Relates #114101 Closes #114078
1 parent 9f7d7b1 commit 3cd809a

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

plugins/discovery-ec2/src/test/java/org/elasticsearch/discovery/ec2/EC2RetriesTests.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -101,6 +101,7 @@ public void testEC2DiscoveryRetriesOnRateLimiting() throws IOException {
101101
exchange.getResponseHeaders().set("Content-Type", "text/xml; charset=UTF-8");
102102
exchange.sendResponseHeaders(HttpStatus.SC_OK, responseBody.length);
103103
exchange.getResponseBody().write(responseBody);
104+
exchange.getResponseBody().flush();
104105
return;
105106
}
106107
}

0 commit comments

Comments
 (0)