-
Notifications
You must be signed in to change notification settings - Fork 2.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Mark duplicated context created by Vert.x as safe in non-blocking @ConsumeEvent #24246
Mark duplicated context created by Vert.x as safe in non-blocking @ConsumeEvent #24246
Conversation
Failing Jobs - Building 34514aa
Full information is available in the Build summary check run. Failures⚙️ Devtools Tests - JDK 11 #- Failing: integration-tests/devtools
📦 integration-tests/devtools✖
⚙️ Devtools Tests - JDK 17 #- Failing: integration-tests/devtools
📦 integration-tests/devtools✖
|
@@ -147,12 +148,14 @@ public void testThatBlockingEventConsumersAreCalledOnDuplicatedContext() { | |||
@ConsumeEvent(value = "context") | |||
Uni<String> receive(String data) { | |||
Assertions.assertTrue(Thread.currentThread().getName().contains("vert.x-eventloop")); | |||
VertxContextSafetyToggle.validateContextIfExists("Not marked as safe", "Not marked as safe"); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hm, would it make sense to add a VertxContextSafetyToggle.validateContextIfExists()
method which only accepts one string used for both the errorMessageOnVeto
and errorMessageOnDoubt
? It would save some typing ;-)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Here it's just for a test.
When you want to really check, ou need two different messages.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Here it's just for a test.
Yep, I know... but it would help with tests at least ;-)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good.
No description provided.