You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
fix(e2e): add ClickHouse polling to userCount metrics test
The /internal/metrics endpoint was migrated to read from ClickHouse,
which has eventual consistency. The test was immediately asserting
total_users after signup and deletion without waiting for ClickHouse
to sync.
CI evidence: Freestyle mock run showed 'expected 1 to be +0' at
projects.test.ts:1597 — the user delete hadn't propagated to
ClickHouse yet.
Fix: Poll with 500ms intervals (30s timeout) for both increment
and decrement assertions.
Co-Authored-By: Konstantin Wohlwend <n2d4xc@gmail.com>
// TODO some of the tests here test /api/v1/projects/current, the others test /api/v1/internal/projects/current. We should split them into different test files
@@ -1579,10 +1581,20 @@ it("should increment and decrement userCount when a user is added to a project",
0 commit comments