From ea6a5f53e77bc1bf5c2bc992e65117e7ed47cde4 Mon Sep 17 00:00:00 2001 From: yetone Date: Mon, 28 Sep 2026 17:43:10 +0800 Subject: [PATCH] =?UTF-8?q?agent:=20the=20Windows-only=20WSL=20test=20buil?= =?UTF-8?q?ds=20again=20=E2=80=94=20wslList=20returns=20the=20names=20and?= =?UTF-8?q?=20whether=20wsl.exe=20answered,=20and=20the=20test=20took=20it?= =?UTF-8?q?=20as=20the=20names=20alone?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- internal/agent/wsl_windows_test.go | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/internal/agent/wsl_windows_test.go b/internal/agent/wsl_windows_test.go index 4638e8c0..f3f2635d 100644 --- a/internal/agent/wsl_windows_test.go +++ b/internal/agent/wsl_windows_test.go @@ -19,12 +19,13 @@ func TestWSLCodexLive(t *testing.T) { if name == "" { t.Skip("MAGPIE_WSL_TEST_DISTRO not set") } + names, _ := wslList() found := false - for _, n := range wslList() { + for _, n := range names { found = found || n == name } if !found { - t.Fatalf("%s not in %q", name, wslList()) + t.Fatalf("%s not in %q", name, names) } home := t.TempDir() for _, k := range []string{"HOME", "USERPROFILE"} {