@@ -14,7 +14,7 @@ suite('Project Manager Update URI tests', () => {
14
14
projectManager . dispose ( ) ;
15
15
} ) ;
16
16
17
- test ( 'updateProjectUri should update existing project URI' , ( ) => {
17
+ test ( 'updateProjectUri should update existing project URI' , async ( ) => {
18
18
const oldUri = Uri . file ( '/path/to/old/project' ) ;
19
19
const newUri = Uri . file ( '/path/to/new/project' ) ;
20
20
@@ -36,7 +36,7 @@ suite('Project Manager Update URI tests', () => {
36
36
assert . equal ( oldProject . uri . fsPath , oldUri . fsPath , 'Old URI should match' ) ;
37
37
38
38
// Update the project URI
39
- projectManager . modifyProject ( oldUri , 'project' , newUri ) ;
39
+ await projectManager . modifyProject ( oldUri , 'project' , newUri ) ;
40
40
41
41
// Verify project no longer exists with old URI
42
42
const oldProjectAfterUpdate = projectManager . get ( oldUri ) ;
@@ -57,8 +57,8 @@ suite('Project Manager Update URI tests', () => {
57
57
58
58
// Try to update a project that doesn't exist
59
59
// 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 ) ;
62
62
} , 'Should handle non-existent project gracefully' ) ;
63
63
64
64
// Verify no project was created
0 commit comments