Skip to content
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

Convert mongo-common tests from groovy to java #12382

Merged
merged 15 commits into from
Oct 17, 2024

Conversation

xiepuhuan
Copy link
Contributor

Related to #7195

@xiepuhuan xiepuhuan requested a review from a team as a code owner October 2, 2024 15:15
… and "cleanup"

2. Collection tool class methods use static import

Signed-off-by: xiepuhuan <[email protected]>
2. Convert long to int using `Math.toIntExam`.

Signed-off-by: xiepuhuan <[email protected]>
Copy link
Contributor

@steverao steverao left a comment

Choose a reason for hiding this comment

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

BTW, don't forget to delete following unnecessary dependencies


@xiepuhuan
Copy link
Contributor Author

BTW, don't forget to delete following unnecessary dependencies

Thanks.

2. Close resources using AutoCleanupExtension
3. Reconstruct the mongoSpan method
xiepuhuan and others added 5 commits October 17, 2024 00:13
2. Change the return type of the involved method from int to long.
3. Using isIn instead of containsAnyOf for correct assertions.
4. Directly throw InterruptedException without capturing it.
5. Latch calls await method with timeout.
6. Merge comment lines.
7. Use the get method to wait for the future to complete, just like the original Groovy code.
8. In the mongoSpan method parameters, use SpanDataAsset instead of trace and index.
9. In the mongoSpan method, optimizing assertion error prompts.

Signed-off-by: xiepuhuan <[email protected]>
@trask trask merged commit c743b6d into open-telemetry:main Oct 17, 2024
56 checks passed
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.

6 participants