-
Notifications
You must be signed in to change notification settings - Fork 63
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
add TCK tests for configuring @Timeout attributes #555
Conversation
Contributes to #407. |
tck/src/main/java/org/eclipse/microprofile/fault/tolerance/tck/config/TimeoutConfigBean.java
Outdated
Show resolved
Hide resolved
d9bf513
to
72fc486
Compare
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.
Thanks 👍
*/ | ||
@ApplicationScoped | ||
public class TimeoutConfigBean { | ||
@Timeout(value = 1, unit = ChronoUnit.MILLIS) |
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.
Since @Timeout
has a lot of advantages when used together with @Asynchronous
, I am wondering add @Asynchronous
on one of the endpoint might be good. Thoughts?
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.
In the config test?
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.
We're only testing timeout config here. Do you think we need a specific test for config when @Timeout
and @Asynchronous
are used together?
In general I prefer tests to remain focused. This class just tests Timeout + config while we have other tests for Timeout + async.
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.
Do we have Timeout + async + config? The reason is that timeout is better off to be used with @Asynchronous
. We need to ensure the config works. I will be ok to skip Timeout
with config and vote for Timeout
+Asynchronous
with config.
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.
timeout is better off to be used with @asynchronous
Why is that?
We need to ensure the config works
We do. This PR does that. @Asynchronous
makes no difference whatsoever.
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.
(Actually it might make a difference, depending on implementation, but so can putting the annotation on a class, or configuring an annotation parameter for all methods in a class, or configuring an annotation parameter globally. We decided to stick to this form of testing and I don't quite see how @Asynchronous
is so very relevant.)
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.
In any case, I have just changed one test from synchronous to @Asynchronous
.
Signed-off-by: Ladislav Thon <[email protected]>
72fc486
to
70aa2fd
Compare
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.
LGTM! Thanks @Ladicek !
Signed-off-by: Ladislav Thon [email protected]