Skip to content

s2a: Improve S2AStubTest clarity and performance#12618

Merged
kannanjgithub merged 1 commit intogrpc:masterfrom
Gyuhyeok99:s2a-stub-test-cleanup
Feb 5, 2026
Merged

s2a: Improve S2AStubTest clarity and performance#12618
kannanjgithub merged 1 commit intogrpc:masterfrom
Gyuhyeok99:s2a-stub-test-cleanup

Conversation

@Gyuhyeok99
Copy link
Contributor

@Gyuhyeok99 Gyuhyeok99 commented Jan 21, 2026

Refactors S2AStubTest to address issues in #12581:

  • Rename send_receiveOkStatus to test successful responses using FakeWriter

  • Add send_withUnavailableService_throwsDeadlineExceeded with 1-second deadline for timeout testing

  • as is

image2
  • to be
image

Reduces test execution time from 20 seconds to 1 second while clarifying test intent.

Rename send_receiveOkStatus to test successful response handling using FakeWriter instead of timing out with a real connection.

Add send_withUnavailableService_throwsDeadlineExceeded test with a 1-second deadline to verify timeout behavior without the 20-second wait.
@linux-foundation-easycla
Copy link

linux-foundation-easycla bot commented Jan 21, 2026

CLA Signed
The committers listed above are authorized under a signed CLA.

  • ✅ login: Gyuhyeok99 / name: 황규혁 (bd2125b)

Copy link
Contributor

@kannanjgithub kannanjgithub left a comment

Choose a reason for hiding this comment

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

Changes look good.

@kannanjgithub kannanjgithub added the kokoro:run Add this label to a PR to tell Kokoro the code is safe and tests can be run label Feb 5, 2026
@grpc-kokoro grpc-kokoro removed the kokoro:run Add this label to a PR to tell Kokoro the code is safe and tests can be run label Feb 5, 2026
@kannanjgithub
Copy link
Contributor

/gcbrun

@kannanjgithub kannanjgithub merged commit 4f2b110 into grpc:master Feb 5, 2026
17 checks passed
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.

3 participants