You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
674: Make test 'iter_panic_fuse' deterministic r=cuviper a=Aaron1011
Fixesrayon-rs#667
'panic_fuse' will only stop other threads 'as soon as possible' -
if the other threads are fast enough, they might end up processing
the entire rest of the iterator.
This commit changes the test 'iter_panic_fuse' to properly take this
into account, by creating a custom threadpool with only 1 thread.
This makes the test deterministic - with only one thread, the panic
is guaranmteed to be observed when the next item is processed, causing
the desired early exit.
Co-authored-by: Aaron Hill <aa1ronham@gmail.com>
Co-authored-by: Josh Stone <cuviper@gmail.com>
0 commit comments