test(workflow): fix watchdog event assertion

The test captures Debug output from RunEvent, which renders the event body variant name rather than the canonical envelope string. Assert on StallWatchdogTimeout so the check matches the collected output.
This commit is contained in:
Bryan Helmkamp 2026-04-04 21:42:12 -04:00
parent b8bd859125
commit b4665579ce
No known key found for this signature in database

View file

@ -12139,8 +12139,8 @@ async fn e2e_stall_watchdog_triggers_from_dot_parsed_pipeline() {
// Verify the canonical watchdog timeout envelope was emitted.
let collected = events.lock().unwrap();
assert!(
collected.iter().any(|e| e.contains("watchdog.timeout")),
"expected watchdog.timeout event in: {collected:?}"
collected.iter().any(|e| e.contains("StallWatchdogTimeout")),
"expected StallWatchdogTimeout event in: {collected:?}"
);
}