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

Run unit tests on Windows and fix them #10027

Merged
merged 1 commit into from
May 19, 2022

Conversation

@dmitryax dmitryax added the Skip Changelog PRs that do not require a CHANGELOG.md entry label May 15, 2022
@dmitryax dmitryax force-pushed the enable-windows-make branch 5 times, most recently from 0bb1a58 to b0bf981 Compare May 16, 2022 05:09
@dmitryax dmitryax changed the title Run unit tests for all modules on Windows Run unit tests on Windows and fix them May 16, 2022
@dmitryax dmitryax force-pushed the enable-windows-make branch 6 times, most recently from 0f40856 to 1a40ade Compare May 16, 2022 16:43
@@ -279,49 +268,3 @@ func Test_Scraping_Wildcard(t *testing.T) {

require.GreaterOrEqual(t, len(counterVals), 3)
}

// Test_Closing ensures that watchers close appropriately
func Test_Closing(t *testing.T) {
Copy link
Member Author

Choose a reason for hiding this comment

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

Removed instead of fixing. This test doesn't test any production code, only mockPerfCounter functionality.

@dmitryax dmitryax force-pushed the enable-windows-make branch from 1a40ade to 3bb0d76 Compare May 16, 2022 17:00

// Test_Scraping ensures that watchers watch appropriately using mocked perfcounters to
// pass valus through
func Test_Scraping(t *testing.T) {
Copy link
Member Author

Choose a reason for hiding this comment

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

Removed instead of fixing. This test doesn't test any production code, only mockPerfCounter functionality.

@dmitryax dmitryax force-pushed the enable-windows-make branch 13 times, most recently from f9daa4a to fff6fb5 Compare May 17, 2022 21:09
@dmitryax dmitryax force-pushed the enable-windows-make branch 13 times, most recently from 9c5e713 to 2cc6acc Compare May 19, 2022 05:21
@dmitryax dmitryax force-pushed the enable-windows-make branch from 2cc6acc to 54d2ee6 Compare May 19, 2022 06:54
@dmitryax dmitryax marked this pull request as ready for review May 19, 2022 06:57
@dmitryax dmitryax requested a review from a team May 19, 2022 06:57
@dmitryax
Copy link
Member Author

@open-telemetry/collector-contrib-approvers PTAL

@djaglowski djaglowski merged commit dbf0dfb into open-telemetry:main May 19, 2022
jamesmoessis pushed a commit to jamesmoessis/opentelemetry-collector-contrib that referenced this pull request May 20, 2022
Enable all unit tests on Windows and fix them
kentquirk pushed a commit to McSick/opentelemetry-collector-contrib that referenced this pull request Jun 14, 2022
Enable all unit tests on Windows and fix them
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Skip Changelog PRs that do not require a CHANGELOG.md entry
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants