-
Notifications
You must be signed in to change notification settings - Fork 326
Move milliseconds and seconds to duration #647
Move milliseconds and seconds to duration #647
Conversation
...hql-spring-boot-test/src/main/java/com/graphql/spring/boot/test/GraphQLTestSubscription.java
Outdated
Show resolved
Hide resolved
...hql-spring-boot-test/src/main/java/com/graphql/spring/boot/test/GraphQLTestSubscription.java
Show resolved
Hide resolved
Also, the commit type should be |
...e/src/main/java/graphql/kickstart/autoconfigure/web/servlet/GraphQLWebAutoConfiguration.java
Outdated
Show resolved
Hide resolved
...e/src/main/java/graphql/kickstart/autoconfigure/web/servlet/GraphQLWebAutoConfiguration.java
Outdated
Show resolved
Hide resolved
...figure/src/main/java/graphql/kickstart/autoconfigure/web/servlet/AsyncServletProperties.java
Outdated
Show resolved
Hide resolved
...hql-spring-boot-test/src/main/java/com/graphql/spring/boot/test/GraphQLTestSubscription.java
Show resolved
Hide resolved
Please squash the two commits, in this case I think they should be one. |
...hql-spring-boot-test/src/main/java/com/graphql/spring/boot/test/GraphQLTestSubscription.java
Outdated
Show resolved
Hide resolved
* does not have any expectation regarding the number of messages. The subscription will be | ||
* stopped after the time elapsed. | ||
* | ||
* @param timeToWait the time to wait, in durations |
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 durations" sounds strange again. Simply "time to wait" seems enoungh, unit of measurement is now part of the input.
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.
I've dealt with it.
/** | ||
* Asynchronous execution timeout. If a duration suffix is not specified, millisecond will be used. | ||
*/ | ||
@NonNull |
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.
I would drop @NonNull
for now, and return to the validation part in a separate PR.
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.
I've dealt with it.
Thanks for the contribution, looks good for me. Added some final comments, mostly cosmetic things. I noticed that in the javadoc part there are several "in durations", which sounds strange. (Possibly a result of replacing millisecond with duration?) |
Added this to the next milestone. I see @oliemansm added another configuration-related issue (#232) - so maybe it would be a good time to review config properties as a whole:
|
When I submitted PR, I also found another questionable code, was it intentional or typo |
Yes, this definitely looks like a mistake. It should be either min or max (max is currently overriding min, and I would assume max was intended originally). |
/** | ||
* Waits a specified amount of time and asserts that no responses were received during that time. | ||
* | ||
* @param timeToWait time to wait, in durations. |
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 durations"
* Waits a specified amount of time and asserts that no responses were received during that time. | ||
* The subscription will be stopped afterwards. | ||
* | ||
* @param timeToWait time to wait, in durations. |
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 durations"
fixes #645 move milliseconds and seconds to duration