Skip to content

Fix flaky streaming test - #2134

Merged
JamesNK merged 5 commits into
grpc:masterfrom
JamesNK:jamesnk/streaming-test-flaky-status
May 25, 2023
Merged

Fix flaky streaming test#2134
JamesNK merged 5 commits into
grpc:masterfrom
JamesNK:jamesnk/streaming-test-flaky-status

Conversation

@JamesNK

@JamesNK JamesNK commented May 18, 2023

Copy link
Copy Markdown
Member

Fix failure noticed here - #2131 (comment)

@JamesNK

JamesNK commented May 23, 2023

Copy link
Copy Markdown
Member Author

Please review 🙏

CancellationToken.None).AsTask().DefaultTimeout();

Assert.IsFalse(pickTask2.IsCompleted);
Assert.IsFalse(pickTask2.IsCompleted, "PickAsync should wait until an subchannel is ready.");

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

I don't get it. You wait for subchannels to be ready, assert that PickAsync doesn't complete, and then say PickAsync shouldn't complete until subchannels are ready. (Also, the grammar is wrong in the sentence, I assume you mean "any subchannels are ready" or "a subchannel is ready")

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Ah wait, now I understand, the expectedCount value is 0, maybe use named params.

Comment thread test/Grpc.Net.Client.Tests/Balancer/ConnectionManagerTests.cs Outdated
@JamesNK
JamesNK merged commit 6bc44e9 into grpc:master May 25, 2023
@JamesNK
JamesNK deleted the jamesnk/streaming-test-flaky-status branch May 25, 2023 03:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants