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 {