From 6e9aaf98238f49396383d6d8eee2a65b1fd78849 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sarek=20H=C3=B8verstad=20Skot=C3=A5m?= Date: Tue, 15 Oct 2024 16:38:35 -0700 Subject: [PATCH] Update panic message in UncontrolledNondeterminismCheckScheduler to be less verbose --- src/scheduler/uncontrolled_nondeterminism.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/scheduler/uncontrolled_nondeterminism.rs b/src/scheduler/uncontrolled_nondeterminism.rs index e3ee180..e74d85a 100644 --- a/src/scheduler/uncontrolled_nondeterminism.rs +++ b/src/scheduler/uncontrolled_nondeterminism.rs @@ -90,7 +90,7 @@ impl Scheduler for UncontrolledNondeterminismCheckScheduler { .map(|t| t.id()) .collect::>(); if *runnables.as_slice() != *runnable_ids { - panic!("possible nondeterminism: set of runnable tasks is different than expected (expected {runnables:?} but got {runnable_tasks:?})"); + panic!("possible nondeterminism: set of runnable tasks is different than expected.\nExpected:\n{runnables:?}\nbut got:\n{runnable_ids:?}"); } if *was_yielding != is_yielding {