Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion test/http/observability.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -236,7 +236,9 @@ describe("#56 GET /plugboard/metrics", () => {
test("a successful scrape writes no log line", async () => {
await route({ metrics: true })
await server!.send({ path: "/plugboard/metrics" })
expect(logs.lines).toEqual([])
// Only lines about this scrape count. A background line from an earlier test (e.g. a streamed
// request's usage_missing) can land after beforeEach clears the capture, so filter on the route.
expect(logs.lines.filter((line) => line.raw.includes("/plugboard/metrics"))).toEqual([])
})

test("off: the route records no metrics at all", async () => {
Expand Down
Loading