@@ -438,7 +438,7 @@ suite('Workspace Experiments Test Suite', () => {
438438 } )
439439
440440 describe ( 'dvc.startExperimentsQueue' , ( ) => {
441- it ( 'should be able to execute all experiments in the run queue ' , async ( ) => {
441+ it ( 'should be able to start the experiments queue with the selected number of workers ' , async ( ) => {
442442 const mockQueueStart = stub ( DvcExecutor . prototype , 'queueStart' ) . resolves (
443443 undefined
444444 )
@@ -454,11 +454,29 @@ suite('Workspace Experiments Test Suite', () => {
454454 await commands . executeCommand ( RegisteredCliCommands . QUEUE_START )
455455
456456 expect ( mockQueueStart ) . to . be . calledOnce
457- expect ( mockQueueStart ) . to . be . calledWith ( dvcDemoPath , dDosNumberOfJobs )
457+ expect ( mockQueueStart ) . to . be . calledWithExactly (
458+ dvcDemoPath ,
459+ dDosNumberOfJobs
460+ )
458461 expect ( mockInputBox )
459462 } )
460463 } )
461464
465+ describe ( 'dvc.stopExperimentsQueue' , ( ) => {
466+ it ( 'should be able to stop the experiments queue' , async ( ) => {
467+ const mockQueueStop = stub ( DvcExecutor . prototype , 'queueStop' ) . resolves (
468+ undefined
469+ )
470+
471+ stubWorkspaceExperimentsGetters ( dvcDemoPath )
472+
473+ await commands . executeCommand ( RegisteredCliCommands . QUEUE_STOP )
474+
475+ expect ( mockQueueStop ) . to . be . calledOnce
476+ expect ( mockQueueStop ) . to . be . calledWithExactly ( dvcDemoPath )
477+ } )
478+ } )
479+
462480 describe ( 'dvc.applyExperiment' , ( ) => {
463481 it ( 'should ask the user to pick an experiment and then apply that experiment to the workspace' , async ( ) => {
464482 const selectedExperiment = 'test-branch'
0 commit comments