From c92569d85c6506b1f947a0bb90366a337eaf42cc Mon Sep 17 00:00:00 2001 From: OrcaWin <293788423+OrcaWin@users.noreply.github.com> Date: Sun, 9 Aug 2026 23:13:00 -0700 Subject: [PATCH] fix(test): defer WSL routing filesystem access --- src/main/git/wsl-linked-worktree-git-routing.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/main/git/wsl-linked-worktree-git-routing.ts b/src/main/git/wsl-linked-worktree-git-routing.ts index 62a09c57313..23b22b7f370 100644 --- a/src/main/git/wsl-linked-worktree-git-routing.ts +++ b/src/main/git/wsl-linked-worktree-git-routing.ts @@ -1,4 +1,4 @@ -import { readFile, stat } from 'node:fs/promises' +import * as fsPromises from 'node:fs/promises' import { win32 } from 'node:path' import type { Stats } from 'node:fs' @@ -55,8 +55,8 @@ export type WslLinkedWorktreeRoutingOptions = { } const defaultFileSystem: WslLinkedWorktreeRoutingFileSystem = { - stat, - readFile: (path) => readFile(path, 'utf8') + stat: (path) => fsPromises.stat(path), + readFile: (path) => fsPromises.readFile(path, 'utf8') } async function shouldUseHostGit(