-
Notifications
You must be signed in to change notification settings - Fork 748
Closed
Labels
Description
Failed on mac stable: https://github.com/aws/aws-toolkit-vscode/actions/runs/11823977700/job/32944478705
FileSystem
rename()
source file does not exist at first, but eventually appears:
AssertionError [ERR_ASSERTION]: telemetry metric not found: "ide_fileSystem"
+ expected - actual
-false
+true
aws-toolkit-vscode/packages/core/src/test/shared/fs/fs.test.ts
Lines 462 to 477 in e835b6c
| it('source file does not exist at first, but eventually appears', async () => { | |
| const oldPath = testFolder.pathFrom('oldFile.txt') | |
| const newPath = testFolder.pathFrom('newFile.txt') | |
| const result = fs.rename(oldPath, newPath) | |
| // this file is created after the first "exists" check fails, the following check should pass | |
| void testutil.toFile('hello world', oldPath) | |
| await result | |
| testutil.assertTelemetry('ide_fileSystem', { | |
| action: 'rename', | |
| result: 'Succeeded', | |
| reason: 'RenameRaceCondition', | |
| }) | |
| }) | |
| }) |