Skip to content

Commit

Permalink
utimes debug
Browse files Browse the repository at this point in the history
Signed-off-by: wthrajat <[email protected]>
  • Loading branch information
wthrajat committed Jul 1, 2024
1 parent 03fbb44 commit c8963d2
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions language-server/src/features/workspace-neovim.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,7 @@ describe("Feature - workspace (neovim)", () => {
});

const subjectSchemaUri = resolveIri("./subject.schema.json", `${workspaceFolder}/`);
console.log(`Resolved subject schema URI: ${subjectSchemaUri}`);

Check failure on line 85 in language-server/src/features/workspace-neovim.test.ts

View workflow job for this annotation

GitHub Actions / build (ubuntu-latest, 20.x)

Unexpected console statement

Check failure on line 85 in language-server/src/features/workspace-neovim.test.ts

View workflow job for this annotation

GitHub Actions / build (macos-latest, 20.x)

Unexpected console statement
await touch(fileURLToPath(subjectSchemaUri));

expect(await validatedSchemas).to.eql([subjectSchemaUri]);
Expand All @@ -98,7 +99,8 @@ const wait = async (delay: number) => {
});
};

const touch = (path: string) => {
const touch = async (path: string) => {
const time = new Date();
return utimes(path, time, time);
await utimes(path, time, time);
console.log(`File at ${path} touched at ${time.toISOString()}`);

Check failure on line 105 in language-server/src/features/workspace-neovim.test.ts

View workflow job for this annotation

GitHub Actions / build (ubuntu-latest, 20.x)

Unexpected console statement

Check failure on line 105 in language-server/src/features/workspace-neovim.test.ts

View workflow job for this annotation

GitHub Actions / build (macos-latest, 20.x)

Unexpected console statement
};

0 comments on commit c8963d2

Please sign in to comment.