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 TestV3WatchMultipleStreams #4237

Merged
merged 1 commit into from
Jan 19, 2016
Merged

Conversation

gyuho
Copy link
Contributor

@gyuho gyuho commented Jan 19, 2016

Related #4216.

@gyuho gyuho mentioned this pull request Jan 19, 2016
10 tasks
streams[i] = wStream
}

for i := range streams {
Copy link
Contributor

Choose a reason for hiding this comment

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

for _, wStream := ... ?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Ok will fix.

// now Recv should block because there is no more events coming
for i := range streams {
wStream := streams[i]
rok, nr := WaitResponse(wStream, 1*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.

move to goroutine above so waits are concurrent?

t.Fatalf("wAPI.Watch error: %v", err)
wStream, wErr := wAPI.Watch(context.TODO())
if wErr != nil {
t.Fatalf("wAPI.Watch error: %v", wErr)
Copy link
Contributor Author

Choose a reason for hiding this comment

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

fixing this based on go tool -shadow.

@gyuho
Copy link
Contributor Author

gyuho commented Jan 19, 2016

@heyitsanthony Just addressed. PTAL. Thanks!

@heyitsanthony
Copy link
Contributor

lgtm

@gyuho
Copy link
Contributor Author

gyuho commented Jan 19, 2016

Thanks

gyuho added a commit that referenced this pull request Jan 19, 2016
integration: add TestV3WatchMultipleStreams
@gyuho gyuho merged commit 72195af into etcd-io:master Jan 19, 2016
@gyuho gyuho deleted the multi_stream branch January 31, 2016 00:43
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