Skip to content

Commit b712b7c

Browse files
committed
fix tests
1 parent c9d5b86 commit b712b7c

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/test/features/projectManager.updateUri.unit.test.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -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

Comments
 (0)