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

core: stop "testing" from depending on "core"'s test. #2652

Merged
merged 1 commit into from
Jan 25, 2017

Conversation

zhangkun83
Copy link
Contributor

Because "core"'s test source already depends on "testing", e.g.,
core/src/test/java/io/grpc/internal/ServerCallImplTest.java uses
testing/src/main/java/io/grpc/internal/testing/StatsTestUtils.java,
which forms a circular dependency.

This change moves the StatsContext setter accessors from "core"'s test
source to "testing".

Resolves #2651

Because "core"'s test source already depends on "testing", e.g.,
`core/src/test/java/io/grpc/internal/ServerCallImplTest.java` uses
`testing/src/main/java/io/grpc/internal/testing/StatsTestUtils.java`,
which forms a circular dependency.

This change moves the StatsContext setter accessors from "core"'s test
source to "testing".
Copy link
Contributor

@carl-mastrangelo carl-mastrangelo left a comment

Choose a reason for hiding this comment

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

LGTM

@@ -53,7 +51,7 @@
/**
* Common utility methods for tests.
*/
public final class TestUtils {
final class TestUtils {
Copy link
Contributor

Choose a reason for hiding this comment

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

good idea!

@zhangkun83 zhangkun83 merged commit f088b81 into grpc:master Jan 25, 2017
@zhangkun83 zhangkun83 deleted the move_test_helper branch January 25, 2017 15:57
@lock lock bot locked as resolved and limited conversation to collaborators Jan 21, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants