@@ -138,16 +138,21 @@ suite('Experimentation service', () => {
138138 assert . deepEqual ( experimentService . _optOutFrom , [ 'Foo - experiment' ] ) ;
139139 } ) ;
140140
141- test ( 'Experiment data in Memento storage should be logged if it starts with "python"' , ( ) => {
141+ test ( 'Experiment data in Memento storage should be logged if it starts with "python"' , async ( ) => {
142142 const experiments = [ 'ExperimentOne' , 'pythonExperiment' ] ;
143143 globalMemento = mock ( MockMemento ) ;
144144 configureSettings ( true , [ ] , [ ] ) ;
145- configureApplicationEnvironment ( 'stable' , extensionVersion ) ;
145+ configureApplicationEnvironment ( 'stable' , extensionVersion , { configuration : { properties : { } } } ) ;
146146
147147 // eslint-disable-next-line @typescript-eslint/no-explicit-any
148148 when ( globalMemento . get ( anything ( ) , anything ( ) ) ) . thenReturn ( { features : experiments } as any ) ;
149149
150- new ExperimentService ( instance ( workspaceService ) , instance ( appEnvironment ) , instance ( globalMemento ) ) ;
150+ const exp = new ExperimentService (
151+ instance ( workspaceService ) ,
152+ instance ( appEnvironment ) ,
153+ instance ( globalMemento ) ,
154+ ) ;
155+ await exp . activate ( ) ;
151156 const output = `${ Experiments . inGroup ( ) . format ( 'pythonExperiment' ) } \n` ;
152157
153158 assert . strictEqual ( outputChannel . output , output ) ;
0 commit comments