@@ -14,7 +14,7 @@ suite('Project Manager Update URI tests', () => {
1414 projectManager . dispose ( ) ;
1515 } ) ;
1616
17- test ( 'updateProjectUri should update existing project URI' , ( ) => {
17+ test ( 'updateProjectUri should update existing project URI' , async ( ) => {
1818 const oldUri = Uri . file ( '/path/to/old/project' ) ;
1919 const newUri = Uri . file ( '/path/to/new/project' ) ;
2020
@@ -36,7 +36,7 @@ suite('Project Manager Update URI tests', () => {
3636 assert . equal ( oldProject . uri . fsPath , oldUri . fsPath , 'Old URI should match' ) ;
3737
3838 // Update the project URI
39- projectManager . modifyProject ( oldUri , 'project' , newUri ) ;
39+ await projectManager . modifyProject ( oldUri , 'project' , newUri ) ;
4040
4141 // Verify project no longer exists with old URI
4242 const oldProjectAfterUpdate = projectManager . get ( oldUri ) ;
@@ -57,8 +57,8 @@ suite('Project Manager Update URI tests', () => {
5757
5858 // Try to update a project that doesn't exist
5959 // This should not throw an error
60- assert . doesNotThrow ( ( ) => {
61- projectManager . modifyProject ( oldUri , 'project' , newUri ) ;
60+ assert . doesNotThrow ( async ( ) => {
61+ await projectManager . modifyProject ( oldUri , 'project' , newUri ) ;
6262 } , 'Should handle non-existent project gracefully' ) ;
6363
6464 // Verify no project was created
0 commit comments