Commit 386165c
conformance: add TestConnectionReuse — many calls over one connection
The suite gave each test a fresh connection, so "a persistent transport
survives a long run of consecutive calls" was never an explicit part of
the conformance contract. A client that fails to consume each response's
trailing EOS marker before the next call passes call #1 and fails call #2;
that gap went uncaught (it was a real bug in the Java RpcConnection client).
Adds TestConnectionReuse with two tests, run against every worker across
all transports:
- test_many_sequential_unary_calls: 25 rounds of mixed unary calls on one
connection.
- test_optional_absence_round_trips_repeatedly: absent optionals stay
absent across many reused-connection calls (a client must not degrade
None to present-but-empty, nor poison a later call).
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>1 parent 5c9f9ed commit 386165c
1 file changed
Lines changed: 47 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1232 | 1232 | | |
1233 | 1233 | | |
1234 | 1234 | | |
| 1235 | + | |
| 1236 | + | |
| 1237 | + | |
| 1238 | + | |
| 1239 | + | |
| 1240 | + | |
| 1241 | + | |
| 1242 | + | |
| 1243 | + | |
| 1244 | + | |
| 1245 | + | |
| 1246 | + | |
| 1247 | + | |
| 1248 | + | |
| 1249 | + | |
| 1250 | + | |
| 1251 | + | |
| 1252 | + | |
| 1253 | + | |
| 1254 | + | |
| 1255 | + | |
| 1256 | + | |
| 1257 | + | |
| 1258 | + | |
| 1259 | + | |
| 1260 | + | |
| 1261 | + | |
| 1262 | + | |
| 1263 | + | |
| 1264 | + | |
| 1265 | + | |
| 1266 | + | |
| 1267 | + | |
| 1268 | + | |
| 1269 | + | |
| 1270 | + | |
| 1271 | + | |
| 1272 | + | |
| 1273 | + | |
| 1274 | + | |
| 1275 | + | |
| 1276 | + | |
| 1277 | + | |
| 1278 | + | |
| 1279 | + | |
| 1280 | + | |
| 1281 | + | |
1235 | 1282 | | |
1236 | 1283 | | |
1237 | 1284 | | |
| |||
0 commit comments