spring-boot/spring-boot-project/spring-boot-devtools/src
Andy Wilkinson 34e436ef6e Accommodate SocketException when reading from stopped TunnelClient
TunnelClientTests stopTriggersTunnelClose expects that stopping the
client will cause an attempt to read from a connected channel to
return -1. With Java 17 on Windows the connection has been reset and
a SocketException is thrown instead. This seems reasonable as
stopping the client closes the ServerSocketChannel to which the test
was connected.

This commit updates test to expect a SocketException or a return
value of -1.

Closes gh-30042
2022-03-03 10:30:54 +00:00
..
intTest/java Remove unnecessary throws declaration in tests 2021-05-17 09:31:51 +02:00
main Fix conditions on DevToolsR2dbcAutoConfiguration 2021-10-19 11:03:20 +01:00
test Accommodate SocketException when reading from stopped TunnelClient 2022-03-03 10:30:54 +00:00