-
Notifications
You must be signed in to change notification settings - Fork 1.5k
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
Fix unit tests on Windows #983
Fix unit tests on Windows #983
Conversation
go.mod
Outdated
@@ -56,7 +56,7 @@ require ( | |||
go.opencensus.io v0.22.3 | |||
go.uber.org/zap v1.10.0 | |||
golang.org/x/net v0.0.0-20200324143707-d3edc9973b7e // indirect | |||
golang.org/x/sys v0.0.0-20200408040146-ea54a3c99b9b // indirect | |||
golang.org/x/sys v0.0.0-20200408040146-ea54a3c99b9b |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sneaking this change in. A direct reference to x/sys
was actually introduced in #953
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Would suggest to always split in separate PRs :)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Alright 👍 Rolled this back in this branch
Codecov Report
@@ Coverage Diff @@
## master #983 +/- ##
==========================================
- Coverage 85.62% 85.62% -0.01%
==========================================
Files 184 184
Lines 13087 13080 -7
==========================================
- Hits 11206 11200 -6
+ Misses 1434 1432 -2
- Partials 447 448 +1
Continue to review full report at Codecov.
|
ff69230
to
edb7e82
Compare
go.mod
Outdated
@@ -56,7 +56,7 @@ require ( | |||
go.opencensus.io v0.22.3 | |||
go.uber.org/zap v1.10.0 | |||
golang.org/x/net v0.0.0-20200324143707-d3edc9973b7e // indirect | |||
golang.org/x/sys v0.0.0-20200408040146-ea54a3c99b9b // indirect | |||
golang.org/x/sys v0.0.0-20200408040146-ea54a3c99b9b |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Would suggest to always split in separate PRs :)
edb7e82
to
b0df43d
Compare
Codecov Report
@@ Coverage Diff @@
## master #983 +/- ##
==========================================
+ Coverage 85.62% 85.64% +0.01%
==========================================
Files 184 184
Lines 13087 13080 -7
==========================================
- Hits 11206 11202 -4
+ Misses 1434 1431 -3
Partials 447 447
Continue to review full report at Codecov.
|
* Remove otel/sdk dependency from grpctrace Use otel/trace/testtrace instead and cleanup testing code. * Update httptrace to not depend on the SDK Update testing to use api/trace/testtrace instead. * Add changes to Changelog * Restore check for `http.local` attr on `http.getconn`
…y#983) Bumps [boto3](https://github.com/boto/boto3) from 1.20.12 to 1.20.13. - [Release notes](https://github.com/boto/boto3/releases) - [Changelog](https://github.com/boto/boto3/blob/develop/CHANGELOG.rst) - [Commits](boto/boto3@1.20.12...1.20.13) --- updated-dependencies: - dependency-name: boto3 dependency-type: direct:production update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
* update to demo 1.7 Signed-off-by: Pierre Tessier <pierre@pierretessier.com> * update to demo 1.7 Signed-off-by: Pierre Tessier <pierre@pierretessier.com> --------- Signed-off-by: Pierre Tessier <pierre@pierretessier.com>
Description:
Fixes several unit tests that were failling on Windows:
configgrpc
,configgrpc_test
&opencensusexporter.factory
: On Windows, callingx509.SystemCertPool()
directly returns an error (see the discussion here crypto/x509: make SystemCertPool work on Windows? golang/go#16736), but as per the documentation, leavingTLSConfig.RootCAs
asnil
will still correctly validate certificates against the system cert pool. Fixing the failing tests on Windows required some minor code changes so that we never load the system cert pool, and just rely onRootCAs
beingnil
instead. This made an existing test that checked if the call tox509.SystemCertPool()
failed redundant.configgrpc_test
: Generalised a couple of checks against expected errors so they will pass on Windows (due to slightly different error responses).opencensus_test
&otlp_test
: A tmp file was opened and then deleted before being closed, which raises a file-in-use error on Windows ==> Close the file before deleting it.Link to tracking Issue:
#854
See also:
#976