-
Notifications
You must be signed in to change notification settings - Fork 9.9k
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
Conversation
streams[i] = wStream | ||
} | ||
|
||
for i := range streams { |
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.
for _, wStream := ...
?
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.
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) |
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.
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) |
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.
fixing this based on go tool -shadow
.
@heyitsanthony Just addressed. PTAL. Thanks! |
lgtm |
Thanks |
integration: add TestV3WatchMultipleStreams
Related #4216.