mirror of
https://github.com/moltbot/moltbot.git
synced 2026-05-13 15:47:28 +00:00
test: clear diagnostics prometheus broad matcher
This commit is contained in:
@@ -297,14 +297,13 @@ describe("diagnostics-prometheus service", () => {
|
||||
trusted,
|
||||
);
|
||||
|
||||
expect(emitted).toContainEqual(
|
||||
expect.objectContaining({
|
||||
type: "telemetry.exporter",
|
||||
exporter: "diagnostics-prometheus",
|
||||
signal: "metrics",
|
||||
status: "started",
|
||||
}),
|
||||
);
|
||||
expect(emitted).toContainEqual({
|
||||
type: "telemetry.exporter",
|
||||
exporter: "diagnostics-prometheus",
|
||||
signal: "metrics",
|
||||
status: "started",
|
||||
reason: "configured",
|
||||
});
|
||||
expect(exporter.render()).toContain(
|
||||
'openclaw_model_tokens_total{agent="unknown",channel="unknown",model="gpt-5.4",provider="openai",token_type="input"} 12',
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user