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

integration: add TestV3WatchWithPrevKV #6634

Merged
merged 1 commit into from
Oct 12, 2016
Merged

Conversation

gyuho
Copy link
Contributor

@gyuho gyuho commented Oct 12, 2016

vals: []string{"first", "second"},
}}
for i, tt := range tests {
ctx, cancel := context.WithTimeout(context.Background(), 30*time.Second)
Copy link
Contributor

Choose a reason for hiding this comment

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

we already use some ctx.TODO() in rpc calls with the assumption that the 1 node cluster wont die.

why do we need a ctx for the watch rpc?

we can change the ctx.done at line 1148 to a simple time.After.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Just fixed. PTAL.

@xiang90
Copy link
Contributor

xiang90 commented Oct 12, 2016

LGTM. Defer to @heyitsanthony

@xiang90 xiang90 merged commit 354891f into etcd-io:master Oct 12, 2016
@gyuho gyuho deleted the manual branch October 12, 2016 23:48
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.

3 participants