Commit 95479fc
test: stabilize cmd tests by centralizing InstallLock reset
After 07ada36, PrepareConsoleLoggerLevel can fail in tests when InstallLock is true.
This commit fixes cmd test setup by forcing InstallLock=false in shared test execution paths.
Changes:
- cmd/main_test.go: set InstallLock=false in runTestApp and remove redundant per-subtest InstallLock mock in TestCliCmd.
- cmd/config_test.go: set InstallLock=false in TestConfigEdit and add required imports.
Co-Authored-By: GitHub Copilot <copilot@github.com> (GPT-5.3-Codex)1 parent df8aa2f commit 95479fc
2 files changed
Lines changed: 5 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
7 | 7 | | |
8 | 8 | | |
9 | 9 | | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
10 | 13 | | |
11 | 14 | | |
12 | 15 | | |
13 | 16 | | |
| 17 | + | |
14 | 18 | | |
15 | 19 | | |
16 | 20 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
50 | 50 | | |
51 | 51 | | |
52 | 52 | | |
| 53 | + | |
53 | 54 | | |
54 | 55 | | |
55 | 56 | | |
| |||
157 | 158 | | |
158 | 159 | | |
159 | 160 | | |
160 | | - | |
161 | 161 | | |
162 | 162 | | |
163 | 163 | | |
| |||
0 commit comments