test: spend enough Gemini tokens to exhaust account credit Floor-dividing the allowance by Gemini 3.7 Flash's declared promo output rate left 2 microUSD, so the thread-open refusal never fired. Ceil the token count so the metered spend covers the grant.
test: spend enough Gemini tokens to exhaust account credit
Deploy story
What this commit did to the running system — joined from the forge receipt chain, the part a commit page elsewhere cannot show.
- pushed
- by user · WAL seq 476 · 2026-08-28T06:32:40.593469Z
- built
- 5 modules in 151.6 s
- deployed
- live · 5 modules on 3 nodes · push→live —
- deployed
- needs_rolling_replace · 5 modules on 0 nodes · push→live —
Changed files
-
modified
test/openagents_web/controllers/thread_controller_test.exs
Diff
1 file changed, +4 -1
test/openagents_web/controllers/thread_controller_test.exs modified +4 -1
@@ -304,7 +304,10 @@ defmodule OpenAgentsWeb.ThreadControllerTest do
| 304 | 304 |
|
| 305 | 305 |
|
| 306 | 306 |
|
| 307 |
|
|
| 307 |
|
|
| 308 |
|
|
| 309 |
|
|
| 310 |
|
|
| 308 | 311 |
|
| 309 | 312 |
|
| 310 | 313 |
|