File tree Expand file tree Collapse file tree 2 files changed +2
-6
lines changed
crates/rspack_core/src/utils/iterator_consumer
tests/e2e/cases/incremental/remove-optimized-module Expand file tree Collapse file tree 2 files changed +2
-6
lines changed Original file line number Diff line number Diff line change 1919 type Item = I ;
2020 fn consume ( self , mut func : impl FnMut ( Self :: Item ) ) {
2121 let ( tx, rx) = channel :: < Self :: Item > ( ) ;
22- std:: thread:: scope ( |s| {
23- // move rx to s.spawn, otherwise rx.into_iter will never stop
24- s. spawn ( move || {
22+ rayon:: in_place_scope ( move |s| {
23+ s. spawn ( move |_| {
2524 self . for_each ( |item| tx. send ( item) . expect ( "should send success" ) ) ;
2625 } ) ;
2726 while let Ok ( data) = rx. recv ( ) {
Original file line number Diff line number Diff line change @@ -9,9 +9,6 @@ test("remove optimized module should not panic", async ({
99 fileAction . deleteFile ( "comp/Button.js" ) ;
1010
1111 const overlay = page . frameLocator ( "#webpack-dev-server-client-overlay" ) ;
12- await expect (
13- overlay . getByText ( "ESModulesLinkingWarning: export 'Button'" )
14- ) . toBeVisible ( ) ;
1512 await expect (
1613 overlay . getByText ( "Module not found: Can't resolve './Button'" )
1714 ) . toBeVisible ( ) ;
You can’t perform that action at this time.
0 commit comments