Skip to content

Commit

Permalink
Update panic message in UncontrolledNondeterminismCheckScheduler to b…
Browse files Browse the repository at this point in the history
…e less verbose
  • Loading branch information
sarsko committed Oct 16, 2024
1 parent 63a7aa9 commit 71bddb3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/scheduler/uncontrolled_nondeterminism.rs
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ impl<S: Scheduler> Scheduler for UncontrolledNondeterminismCheckScheduler<S> {
.map(|t| t.id())
.collect::<SmallVec<[TaskId; DEFAULT_INLINE_TASKS]>>();
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. Expected:\n{runnables:?}\nbut got:\n{runnable_ids:?}");
}

if *was_yielding != is_yielding {
Expand Down

0 comments on commit 71bddb3

Please sign in to comment.