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

Apply TestDnsServiceDiscovererBuilderProvider only for a specific id #2523

Conversation

idelpivnitskiy
Copy link
Member

Motivation:

Gradle can run test classes in different order. In case it runs DnsServiceDiscovererBuilderProviderTest after any other test, the numbers are off because existing TestDnsServiceDiscovererBuilderProvider is applied to any builder.

Modifications:

  • Apply TestDnsServiceDiscovererBuilderProvider logic only for DnsServiceDiscovererBuilderProviderTest;

Result:

Tests pass regardless of the execution order.

Motivation:

Gradle can run test classes in different order. In case it runs
`DnsServiceDiscovererBuilderProviderTest` after any other test, the
numbers are off because existing `TestDnsServiceDiscovererBuilderProvider`
is applied to any builder.

Modifications:

- Apply `TestDnsServiceDiscovererBuilderProvider` logic only for
`DnsServiceDiscovererBuilderProviderTest`;

Result:

Tests pass regardless of the execution order.
@idelpivnitskiy idelpivnitskiy self-assigned this Feb 24, 2023
@idelpivnitskiy
Copy link
Member Author

@idelpivnitskiy idelpivnitskiy merged commit 95019bd into apple:main Feb 24, 2023
@idelpivnitskiy idelpivnitskiy deleted the DnsServiceDiscovererBuilderProviderTest branch February 24, 2023 17:06
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.

2 participants