test: tighten real behavior proof assertions

This commit is contained in:
Peter Steinberger
2026-05-09 09:51:04 +01:00
parent cb472abaf3
commit 2abb0271a4

View File

@@ -71,10 +71,13 @@ describe("real-behavior-proof-policy", () => {
}); });
expect(evaluation.status).toBe("passed"); expect(evaluation.status).toBe("passed");
expect(evaluation.fields).toMatchObject({ expect(evaluation.fields).toStrictEqual({
behavior: "Gateway startup no longer drops the configured Discord channel.", behavior: "Gateway startup no longer drops the configured Discord channel.",
evidence: "![after](https://github.com/user-attachments/assets/gateway-ready)", evidence: "![after](https://github.com/user-attachments/assets/gateway-ready)",
environment: "macOS 15.4, Node 24, local OpenClaw gateway with a redacted Discord token.",
notTested: "No known gaps.",
observedResult: "The gateway stayed connected and the Discord channel showed ready.", observedResult: "The gateway stayed connected and the Discord channel showed ready.",
steps: "pnpm openclaw gateway restart, then pnpm openclaw gateway status",
}); });
expect(labelsForRealBehaviorProof(evaluation)).toEqual([PROOF_SUPPLIED_LABEL]); expect(labelsForRealBehaviorProof(evaluation)).toEqual([PROOF_SUPPLIED_LABEL]);
}); });