Commit 01dbe32
Fix vt=0 being ignored in read() method (#11)
* feat: add set_vt_method and usage docs
* test: add test for set_vt method
* Initial plan
* Fix bug: vt=0 should be valid visibility timeout value
Added check for `vt is None` in the read() method to properly handle vt=0.
Previously, vt=0 would be treated as falsy and would default to self.vt (30 seconds).
Now vt=0 correctly sets the visibility timeout to 0 seconds as expected.
Also added test case to verify vt=0 works correctly.
Co-authored-by: jason810496 <[email protected]>
---------
Co-authored-by: jason810496 <[email protected]>
Co-authored-by: LIU ZHE YOU <[email protected]>
Co-authored-by: copilot-swe-agent[bot] <[email protected]>1 parent 91c4bd0 commit 01dbe32
2 files changed
Lines changed: 17 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
573 | 573 | | |
574 | 574 | | |
575 | 575 | | |
| 576 | + | |
| 577 | + | |
576 | 578 | | |
577 | 579 | | |
578 | 580 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
162 | 162 | | |
163 | 163 | | |
164 | 164 | | |
| 165 | + | |
| 166 | + | |
| 167 | + | |
| 168 | + | |
| 169 | + | |
| 170 | + | |
| 171 | + | |
| 172 | + | |
| 173 | + | |
| 174 | + | |
| 175 | + | |
| 176 | + | |
| 177 | + | |
| 178 | + | |
| 179 | + | |
165 | 180 | | |
166 | 181 | | |
167 | 182 | | |
| |||
0 commit comments