From f87fc79f3f905b25430bad45ed105409a5fac309 Mon Sep 17 00:00:00 2001 From: Valentin Palkovic Date: Wed, 11 Jan 2023 09:28:06 +0100 Subject: [PATCH] Log events when event log assertion fails --- scripts/event-log-checker.ts | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/scripts/event-log-checker.ts b/scripts/event-log-checker.ts index 316f4103b42a..14a95a7afcad 100644 --- a/scripts/event-log-checker.ts +++ b/scripts/event-log-checker.ts @@ -25,7 +25,11 @@ async function run() { const events = await (await fetch(`http://localhost:${PORT}/event-log`)).json(); - assert.equal(events.length, 2); + assert.equal( + events.length, + 2, + `Expected 2 events. The following events were logged: ${JSON.stringify(events)} ` + ); const [bootEvent, mainEvent] = events;