Commit 4d7901b
test: poll until volume is visible before mounting it
`sandbox volumes create` returns the volume id immediately, but the
backend may take a moment to make the volume visible to subsequent
operations (mount, list). The `sandbox with volume mount` test hit
this race on every CI run, surfacing as `VOLUME_NOT_FOUND` when the
follow-up `sandbox create --volume <id>:path` call ran before the
volume was queryable.
Adds a `waitForVolumeReady` helper that polls `volumes list` for up to
15s (500ms interval) after creation, and inserts a call between the
volume creation and the mount in the affected test.
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>1 parent 34794b5 commit 4d7901b
1 file changed
Lines changed: 23 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
11 | 11 | | |
12 | 12 | | |
13 | 13 | | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
14 | 36 | | |
15 | 37 | | |
16 | 38 | | |
| |||
143 | 165 | | |
144 | 166 | | |
145 | 167 | | |
| 168 | + | |
146 | 169 | | |
147 | 170 | | |
148 | 171 | | |
| |||
0 commit comments