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

*: use Go 1.11 for tests #10045

Merged
merged 5 commits into from
Aug 29, 2018
Merged

*: use Go 1.11 for tests #10045

merged 5 commits into from
Aug 29, 2018

Conversation

gyuho
Copy link
Contributor

@gyuho gyuho commented Aug 29, 2018

Also switching to go module in following PRs.

@xiang90
Copy link
Contributor

xiang90 commented Aug 29, 2018

lgtm

@gyuho gyuho added the WIP label Aug 29, 2018
Go 1.11 now marks len(channel) over being-closed channel
as racey operation, fix tests by receiving from channel first
and then check the length of channel.

```
WARNING: DATA RACE
Write at 0x00c000e872c0 by goroutine 198:
  runtime.closechan()
      /usr/local/go/src/runtime/chan.go:327 +0x0
  go.etcd.io/etcd/clientv3.(*lessor).closeRequireLeader()
      /Users/leegyuho/go/src/go.etcd.io/etcd/clientv3/lease.go:379 +0x748
  go.etcd.io/etcd/clientv3.(*lessor).recvKeepAliveLoop()
      /Users/leegyuho/go/src/go.etcd.io/etcd/clientv3/lease.go:455 +0x3a5

Previous read at 0x00c000e872c0 by goroutine 27:
  go.etcd.io/etcd/clientv3/integration.TestLeaseWithRequireLeader()
      /Users/leegyuho/go/src/go.etcd.io/etcd/clientv3/integration/lease_test.go:828 +0x810
  testing.tRunner()
      /usr/local/go/src/testing/testing.go:827 +0x162
```

Signed-off-by: Gyuho Lee <[email protected]>
@gyuho gyuho removed the WIP label Aug 29, 2018
@gyuho gyuho merged commit 1a282a7 into etcd-io:master Aug 29, 2018
@gyuho gyuho deleted the go-1.11 branch August 29, 2018 06:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

2 participants