File tree Expand file tree Collapse file tree 1 file changed +5
-5
lines changed
Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -97,29 +97,29 @@ export async function runExecutorTests(writeOutput) {
9797 runner . test ( "start/stop() (BackgroundExecutor)" , async ( test ) => {
9898 let stdout = "" ;
9999
100- const uuid = await Executor . start ( "sh" , ( type , data ) => {
100+ const uuid = await Executor . BackgroundExecutor . start ( "sh" , ( type , data ) => {
101101
102102 } ) ;
103103
104104 await new Promise ( r => setTimeout ( r , 200 ) ) ;
105105
106106
107107
108- const isRunning = await Executor . isRunning ( uuid ) ;
108+ const isRunning = await Executor . BackgroundExecutor . isRunning ( uuid ) ;
109109
110110 test . assert ( isRunning === true , "Executor must be running" ) ;
111111
112112
113113 await new Promise ( r => setTimeout ( r , 200 ) ) ;
114114
115115
116- await Executor . stop ( uuid ) ;
116+ await Executor . BackgroundExecutor . stop ( uuid ) ;
117117
118118 await new Promise ( r => setTimeout ( r , 200 ) ) ;
119119
120120
121- test . assert ( isRunning !== await Executor . isRunning ( uuid ) , "Executor must be stopped" ) ;
122- test . assert ( await Executor . isRunning ( uuid ) === false , "Executor must be stopped" ) ;
121+ test . assert ( isRunning !== await Executor . BackgroundExecutor . isRunning ( uuid ) , "Executor must be stopped" ) ;
122+ test . assert ( await Executor . BackgroundExecutor . isRunning ( uuid ) === false , "Executor must be stopped" ) ;
123123
124124 } ) ;
125125
You can’t perform that action at this time.
0 commit comments