提交记录修改internal/workbench/instance_name_test.go+9 −1看文件
| @@ -59,7 +59,15 @@ func TestControllerNamesMatchCLIForIndependentProfiles(t *testing.T) { | ||
| 59 | 59 | } |
| 60 | 60 | } |
| 61 | 61 | an, bn := cliName(a), cliName(b) |
| 62 | 删除: if an == bn || len(bn) >= len(an) || len(an) >= 76 { | |
| 62 | 新增: wantA := vmname.HomeLimit(filepath.Join(a.profile, "state", "lima"), false).Name(workspace) | |
| 63 | 新增: wantB := vmname.HomeLimit(filepath.Join(b.profile, "state", "lima"), false).Name(workspace) | |
| 64 | 新增: if an != wantA || bn != wantB { | |
| 65 | 新增: t.Fatalf("CLI names differ from their profile budgets: %q != %q, %q != %q", an, wantA, bn, wantB) | |
| 66 | 新增: } | |
| 67 | 新增: // /tmp keeps the POSIX fixture short enough to exercise different socket | |
| 68 | 新增: // budgets. Deep Windows temp paths can legitimately reach the same minimum | |
| 69 | 新增: // name; independent profile directories still isolate their state. | |
| 70 | 新增: if filepath.Separator == '/' && (an == bn || len(bn) >= len(an) || len(an) >= 76) { | |
| 63 | 71 | t.Fatalf("test requires different truncations: %q, %q", an, bn) |
| 64 | 72 | } |
| 65 | 73 | var wg sync.WaitGroup |

