-
Notifications
You must be signed in to change notification settings - Fork 751
Closed
Labels
Description
Test Details
- Name of test: FileSystem: rename() source file does not exist at first, but eventually appears
- OS of failure: macOs
- VSCode version of failure (minimum/insider/stable): minimum
- Link to failing run: https://github.com/aws/aws-toolkit-vscode/actions/runs/12999361648/job/36254529169
- Link to failing test:
aws-toolkit-vscode/packages/core/src/test/shared/fs/fs.test.ts
Lines 410 to 425 in bdbd8e8
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', }) }) })
Log of Test Failure
1) 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