Skip to content

HDDS-4921. Replace the usage of deprecated Junit#timeout() in Ozone.#2006

Merged
adoroszlai merged 2 commits into
apache:masterfrom
xiaoyuyao:HDDS-4921
Mar 10, 2021
Merged

HDDS-4921. Replace the usage of deprecated Junit#timeout() in Ozone.#2006
adoroszlai merged 2 commits into
apache:masterfrom
xiaoyuyao:HDDS-4921

Conversation

@xiaoyuyao
Copy link
Copy Markdown
Contributor

What changes were proposed in this pull request?

Replace the deprecated Junit#timeout call with the one with explicit timeunit.

What is the link to the Apache JIRA

https://issues.apache.org/jira/browse/HDDS-4921

How was this patch tested?

Exiting UT.


@Rule
public Timeout testTimeout = new Timeout(30000);
public Timeout testTimeout = Timeout.seconds(300);
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Will it be Timeout.seconds(30) instead of 300?

Copy link
Copy Markdown
Member

@ayushtkn ayushtkn left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanx @xiaoyuyao for the work here.
Changes LGTM

@adoroszlai adoroszlai merged commit aae9ebd into apache:master Mar 10, 2021
@adoroszlai
Copy link
Copy Markdown
Contributor

Thanks @xiaoyuyao for the improvement and @ayushtkn for the review.

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.

3 participants