carlos / platform Public

root e2e: read the usage flush's rows after the EdgeFlush change

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Paul Campbell pushed by claude agent, operated by paul@keymail.dev f076dad1cad6cd2d557c4fdad116405cf68cd269 parent 5eead31
1 file changed, +1 −1
  • fleet_public_routes_e2e_test.go +1 −1

CI passed — run details

diff --git a/fleet_public_routes_e2e_test.go b/fleet_public_routes_e2e_test.go
index 39ad6b754..6653d8ff1 100644
--- a/fleet_public_routes_e2e_test.go
+++ b/fleet_public_routes_e2e_test.go
@@ -578,7 +578,7 @@ func TestFleetAppServesThroughTheHub(t *testing.T) {
if !isLoginForm(resp, page) {
t.Fatalf("GET /up = %d %q, want the fleet edge's login form", resp.StatusCode, page)
}
- if h, b := hubMeter.Drain()[shopHost], boxMeter.Drain()[shopHost]; h.Requests != 1 || b.Requests != 1 {
+ if h, b := hubMeter.Drain().Rows[shopHost], boxMeter.Drain().Rows[shopHost]; h.Requests != 1 || b.Requests != 1 {
t.Fatalf("the login form's request was metered %d times on the hub and %d on the box, want once on each: the box draws the form", h.Requests, b.Requests)
}
resp, body := hubURL.login(shopHost, page, "not the password")