Skip to content

Avoid ignoring interrupts in SocketStartTlsTest and SocketSslEchoTest#12946

Merged
normanmaurer merged 1 commit intonetty:mainfrom
chrisvest:5x-starttls-interrupt
Nov 2, 2022
Merged

Avoid ignoring interrupts in SocketStartTlsTest and SocketSslEchoTest#12946
normanmaurer merged 1 commit intonetty:mainfrom
chrisvest:5x-starttls-interrupt

Conversation

@chrisvest
Copy link
Copy Markdown
Member

@chrisvest chrisvest commented Oct 31, 2022

Motivation:
JUnit relies on interrupts to communicate test timeouts.
When we silently swallow interrupts, we break this mechanism.

Modification:
Make the loops in SocketStartTlsTest and SocketSslEchoTest throw their interrupts instead of silently swallowing them.

Result:
The tests now responds to timeouts.

Motivation:
JUnit relies on interrupts to communicate test timeouts.
When we silently swallow interrupts, we break this mechanism.

Modification:
Make the loops in SocketStartTlsTest and SocketSslEchoTest throw their interrupts instead of silently swallowing them.

Result:
The tests now responds to timeouts.
@chrisvest chrisvest force-pushed the 5x-starttls-interrupt branch from 919a286 to ea0538b Compare November 1, 2022 00:07
@chrisvest chrisvest changed the title Avoid ignoring interrupts in SocketStartTlsTest Avoid ignoring interrupts in SocketStartTlsTest and SocketSslEchoTest Nov 1, 2022
@normanmaurer normanmaurer merged commit 59763fb into netty:main Nov 2, 2022
@normanmaurer normanmaurer added this to the 5.0.0.Alpha6 milestone Nov 2, 2022
normanmaurer pushed a commit that referenced this pull request Nov 2, 2022
…#12946)

Motivation:
JUnit relies on interrupts to communicate test timeouts.
When we silently swallow interrupts, we break this mechanism.

Modification:
Make the loops in SocketStartTlsTest and SocketSslEchoTest throw their interrupts instead of silently swallowing them.

Result:
The tests now responds to timeouts.
@chrisvest chrisvest deleted the 5x-starttls-interrupt branch November 2, 2022 16:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants