-
Notifications
You must be signed in to change notification settings - Fork 3.6k
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 tests to cope with future changes to testing.quick.Check - see #5854 #5855
fix tests to cope with future changes to testing.quick.Check - see #5854 #5855
Conversation
Submitted a zero-change PR which shows that origin/master tests failed when compiled with go/master but not with go/go1.6. This build should fail. |
c0104cb
to
8dc4018
Compare
Output of build @ 8dc4018: |
The issue is that a nil []bool slice when round tripped through encoding and decoding becomes []bool{}. |
e0e8ce4
to
90bfc13
Compare
90bfc13 passed with this test run - https://circleci.com/gh/influxdata/influxdb/9927 |
90bfc13
to
ecf8ad7
Compare
Thanks to David Cheney and @marcosnils for the analysis that pin-pointed the issue. |
ecf8ad7
to
babb27e
Compare
glad to help!. |
babb27e
to
dba495a
Compare
Rebased onto v0.10.0 because the same commit would be useful if/when there is a 0.10.2 release. |
…ing.quick.Check in go master The current go compiler at the tip of the go master (1d5001af) has a modified implementation of testing.quick.Check that now generates nil slices as test data. (See: https://gophers.slack.com/archives/general/p14567053570110). The existing tests expect round tripping to work in this case but it does not. So, in these cases we change the expectation to reflect actual behaviour. This needs to be checked for reasonableness.
RHS merges cleanly with 0.10.0 Signed-off-by: Jon Seymour <[email protected]>
Signed-off-by: Jon Seymour <[email protected]>
dba495a
to
a01d020
Compare
This PR is no longer required to workaround the CI build issues. However, it probably still is required because inevitably influxdb will need to use a later version of go which does include a version of testing.quick.Check which will cause spurious failures of 4 tests. |
👍 Thanks @jonseymour |
fix tests to cope with future changes to testing.quick.Check - see #5854
This test case demonstrates that go master breaks the influxdb build, but go 1.6 doesn't. See #5854