yetone
|
e1df9135ad
|
gateway tests: a test run again starts routing afresh — routed (each provider's turn, each candidate's failures and tokens) and wrr's rounds live for the process, and fresh() didn't clear them, so under -count=2 TestGroupInGroupKeepsItsOwnRouting's second run began a turn on (c d a b) and TestOrderedKeepsAnAccountAt98's 502 was its second failure (a 4m backoff, not 1m). fresh() now forgets them (forgetRouting), and TestOrderedKeepsAnAccountAt98, which builds its own Server, calls it too. Both pass with -race -count=20 and fail on main under -count=2; go vet and go test ./internal/gateway/ pass.
|
2026-10-06 11:31:50 +08:00 |
|