From e89666043bf40d97cb9be26bac535422ac84d373 Mon Sep 17 00:00:00 2001 From: Gorka Date: Wed, 18 Mar 2026 10:44:50 -0300 Subject: [PATCH] fix: update mempool E2E assertions for new response format MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The mempool dashboard endpoint now returns live stats under `data.live` (was `data.stats`) and adds `data.averages` and `data.platformVersion`. This is a cross-repo change — the E2E will fail until provider-platform PR #43 is merged and released. --- e2e/dashboard.ts | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/e2e/dashboard.ts b/e2e/dashboard.ts index 1d14357..186c605 100644 --- a/e2e/dashboard.ts +++ b/e2e/dashboard.ts @@ -110,8 +110,10 @@ export async function dashboardE2E({ config, providerSecretKey }: DashboardTestC await withE2ESpan("dashboard.mempool", async () => { console.log(" [dashboard] GET /dashboard/mempool..."); const res = await fetchDashboard(providerUrl, token, "/dashboard/mempool"); - assertField(res, "data.stats.totalSlots"); - assertField(res, "data.stats.totalBundles"); + assertField(res, "data.platformVersion"); + assertField(res, "data.live.totalSlots"); + assertField(res, "data.live.totalBundles"); + assertField(res, "data.averages.sampleCount"); assertField(res, "data.config.slotCapacity"); console.log(" [dashboard] Mempool OK"); });