Commit 357e9e0
authored
[BENCHMARK] fix default timeout parameter (#17412)
Previously, the default value for `timeout` was bound at function
definition time using `options.timeout`, which become outdated if
`options.timeout` changes later. This commit changes the default value
to `None` and assigns the current `options.timeout` inside the function,
ensuring that the latest value is used when no explicit timeout is
provided.
Signed-off-by: Łukasz Plewa <[email protected]>1 parent d190f01 commit 357e9e0
1 file changed
+4
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
20 | 20 | | |
21 | 21 | | |
22 | 22 | | |
23 | | - | |
| 23 | + | |
24 | 24 | | |
25 | 25 | | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
26 | 29 | | |
27 | 30 | | |
28 | 31 | | |
| |||
0 commit comments