Commit 59a4e06
committed
fix: honor the retries option
SeamHttpClient assigned self.retries after calling
niquests.Session.__init__, by which point the session had already mounted
its adapters with the default max_retries. The retries option was
therefore silently ignored: a caller passing Retry(total=5,
status_forcelist=[503]) still got exactly one attempt.
Pass retries through to niquests.Session so the mounted adapters are
built with it. Seam and SeamMultiWorkspace default the option to None,
which now falls back to DEFAULT_RETRIES rather than being dropped.
Drops the xfail markers from the two retry tests that covered this.
Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_011DzapiU8A9NMdyoTybL9xB1 parent f38df32 commit 59a4e06
2 files changed
Lines changed: 6 additions & 15 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
47 | 47 | | |
48 | 48 | | |
49 | 49 | | |
50 | | - | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
51 | 56 | | |
52 | 57 | | |
53 | 58 | | |
54 | 59 | | |
55 | 60 | | |
56 | 61 | | |
57 | | - | |
58 | | - | |
59 | | - | |
60 | 62 | | |
61 | 63 | | |
62 | 64 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
7 | 7 | | |
8 | 8 | | |
9 | 9 | | |
10 | | - | |
11 | | - | |
12 | | - | |
13 | | - | |
14 | | - | |
15 | | - | |
16 | | - | |
17 | | - | |
18 | 10 | | |
19 | | - | |
20 | | - | |
21 | 11 | | |
22 | 12 | | |
23 | 13 | | |
| |||
34 | 24 | | |
35 | 25 | | |
36 | 26 | | |
37 | | - | |
38 | 27 | | |
39 | 28 | | |
40 | 29 | | |
| |||
0 commit comments