Commit d8b48c7
[Rust] Keep session IDs out of prepared-session test diagnostics
Two polling helpers formatted session identifiers into their failure
messages: `await_no_registrations` rendered the router's registered ID
list with `{:?}`, and `await_registered` interpolated the awaited ID.
A downstream consumer that vendors this crate has CodeQL rules flagging
identifiers reaching formatted output, so both were reported there even
though the SDK's own analysis was clean.
Report an outstanding-registration count and a static expectation
message instead. Both helpers keep their exact predicates and deadline
behavior: `await_no_registrations` still returns only when the router
holds zero registrations, and `await_registered` still blocks on the
exact ID it was given, so no assertion is weakened.
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Copilot-Session: 0f9d5ac7-9999-4f37-82b3-a5533bfbc1f61 parent de2ef25 commit d8b48c7
1 file changed
Lines changed: 13 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
186 | 186 | | |
187 | 187 | | |
188 | 188 | | |
| 189 | + | |
| 190 | + | |
| 191 | + | |
189 | 192 | | |
190 | 193 | | |
191 | | - | |
| 194 | + | |
| 195 | + | |
| 196 | + | |
| 197 | + | |
| 198 | + | |
192 | 199 | | |
193 | 200 | | |
194 | | - | |
195 | | - | |
| 201 | + | |
196 | 202 | | |
197 | 203 | | |
198 | 204 | | |
| |||
1043 | 1049 | | |
1044 | 1050 | | |
1045 | 1051 | | |
| 1052 | + | |
| 1053 | + | |
| 1054 | + | |
1046 | 1055 | | |
1047 | 1056 | | |
1048 | 1057 | | |
| |||
1052 | 1061 | | |
1053 | 1062 | | |
1054 | 1063 | | |
1055 | | - | |
| 1064 | + | |
1056 | 1065 | | |
1057 | 1066 | | |
1058 | 1067 | | |
| |||
0 commit comments