Commit fb5f3fa
fix: 修复 Groovy 元数据策略跨测试类泄漏导致的 CI 失败
GroovyStrategyTest 向全局 GroovyMetadataGenerateStrategyContext 注册的自定义策略
未在结束后清理,测试类执行顺序变化时污染 GroovyScriptControllerTest 的元数据断言。
为两个测试类补充清理逻辑,并将 test.db* 加入 .gitignore 避免 H2 文件库残留。
Co-Authored-By: Claude <noreply@anthropic.com>1 parent 06f55a7 commit fb5f3fa
3 files changed
Lines changed: 12 additions & 0 deletions
File tree
- springboot-starter-script/src/test/java/com/codingapi/springboot/script
- controller
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
39 | 39 | | |
40 | 40 | | |
41 | 41 | | |
| 42 | + | |
Lines changed: 9 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
7 | 7 | | |
8 | 8 | | |
9 | 9 | | |
| 10 | + | |
10 | 11 | | |
11 | 12 | | |
12 | 13 | | |
| |||
22 | 23 | | |
23 | 24 | | |
24 | 25 | | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
25 | 34 | | |
26 | 35 | | |
27 | 36 | | |
| |||
Lines changed: 2 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
42 | 42 | | |
43 | 43 | | |
44 | 44 | | |
| 45 | + | |
| 46 | + | |
45 | 47 | | |
46 | 48 | | |
47 | 49 | | |
| |||
0 commit comments