Commit dfac298
committed
test(gateway): cover with_list_timeout (ok / err / timeout paths)
Adds unit tests for the feature-discovery list-call timeout helper introduced
in this PR: a completing future yields Some(Ok), an erroring future yields
Some(Err), and a never-resolving future yields None (timeout). The timeout
case runs under tokio's paused clock so it resolves instantly instead of
waiting the full 10s LIST_TIMEOUT.
Signed-off-by: Mohammod Al Amin Ashik <maa.ashik00@gmail.com>1 parent 715c003 commit dfac298
1 file changed
Lines changed: 33 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
163 | 163 | | |
164 | 164 | | |
165 | 165 | | |
| 166 | + | |
| 167 | + | |
| 168 | + | |
| 169 | + | |
| 170 | + | |
| 171 | + | |
| 172 | + | |
| 173 | + | |
| 174 | + | |
| 175 | + | |
| 176 | + | |
| 177 | + | |
| 178 | + | |
| 179 | + | |
| 180 | + | |
| 181 | + | |
| 182 | + | |
| 183 | + | |
| 184 | + | |
| 185 | + | |
| 186 | + | |
| 187 | + | |
| 188 | + | |
| 189 | + | |
| 190 | + | |
| 191 | + | |
| 192 | + | |
| 193 | + | |
| 194 | + | |
| 195 | + | |
| 196 | + | |
| 197 | + | |
| 198 | + | |
0 commit comments