a2aproject / a2aproject/a2a-tck

[Bug]: Inconsistent blocking configuration in gRPC client vs. tests

Aperta
#116 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub
Lingua principale
Python
Stelle
50
Fork
40
Merge medio
7g 1h
PR unite (30g)
1

Descrizione

### What happened?

In [GRPC client](https://github.com/a2aproject/a2a-tck/blob/b03fefcae9767dad0e978e11573192f74252dfe3/tck/transport/grpc_client.py#L411), blocking is explicitly set to true. However, in the [test](https://github.com/a2aproject/a2a-tck/blob/b03fefcae9767dad0e978e11573192f74252dfe3/tests/mandatory/protocol/test_a2a_v030_new_methods.py#L317-L321), the cancel function expects blocking to be false. Otherwise TaskState would be TaskStateCompleted which is immutable.

For the [JSON-RPC client](https://github.com/a2aproject/a2a-tck/blob/b03fefcae9767dad0e978e11573192f74252dfe3/tck/transport/jsonrpc_client.py#L283-L288), blocking isn't set (defaulting to false?), which matches the test expectation.

Why the gRPC client forced to blocking while the test expects non-blocking behavior?"

### Relevant log output

```shell

```

### Code of Conduct

- [x] I agree to follow this project's Code of Conduct

Guida per i contributori

Apri la guida per i contributori

Valutazione

Questa issue non è ancora stata valutata.

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.