async-rspec icon indicating copy to clipboard operation
async-rspec copied to clipboard

Consider how we can assert that a block of code can not invoke the scheduler

Open ioquatix opened this issue 4 years ago • 0 comments

In some cases, we want to assert that a method cannot possibly be non-blocking.

We should consider introducing a way to determine if the scheduler has been checked or not, so that we can make assertions about the behaviour of the code (non-blocking or not).

expect do
  # ...
end.to_not be_nondeterministic

ioquatix avatar Apr 18 '21 02:04 ioquatix