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

Test RPC server external context cancellation #601

Open
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

homier
Copy link
Contributor

@homier homier commented Jan 10, 2025

No description provided.

Signed-off-by: Dzmitry Mikhalapau <dzmitry.mikhalapau@gmail.com>
@homier
Copy link
Contributor Author

homier commented Jan 10, 2025

@lthibault Hi! As promised, here are some simple tests for #595

Signed-off-by: Dzmitry Mikhalapau <dzmitry.mikhalapau@gmail.com>
Copy link
Collaborator

@lthibault lthibault left a comment

Choose a reason for hiding this comment

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

Looks good. Just one small request!

"capnproto.org/go/capnp/v3/rpc/internal/testcapnp"
)

func TestConnection_BaseContext(t *testing.T) {
Copy link
Collaborator

Choose a reason for hiding this comment

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

Can we add a t.Parallel() to the top of this test?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Sure thing. Done

Signed-off-by: Dzmitry Mikhalapau <dzmitry.mikhalapau@gmail.com>
@homier
Copy link
Contributor Author

homier commented Jan 12, 2025

@lthibault hm, seems like some tests are flaking. I can't rerun pipeline since I don't have enough permissions, but on my machine everything looks good:

$ for i in `seq 50`; do ./rpc.test; done

PASS
PASS
PASS
PASS
PASS
PASS
PASS
PASS
PASS
PASS
PASS
PASS
PASS
PASS
PASS
PASS
PASS
PASS
PASS
PASS
PASS
PASS
PASS
PASS
PASS
PASS
PASS
PASS
PASS
PASS
PASS
PASS
PASS
PASS
PASS
PASS
PASS
PASS
PASS
PASS
PASS
PASS
PASS
PASS
PASS
PASS
PASS
PASS
PASS
PASS
[15:33:13] [cost 128.444s] for i in `seq 50`; do ./rpc.test; done 

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