Commit ade73bd
test: 增加 NPE 复现测试重复次数到 1000 次
调整原因:
- 第一次运行 74 个测试未触发 NPE(符合 0.5% 失败率的概率分布)
- 根据历史数据(5/1000 次失败),需要更多测试次数才能稳定复现
新的测试配置:
- shouldReproduceNPEInRunnableParallel: 50 → 500 次
- shouldReproduceOriginalTestFailure: 20 → 500 次
- 总计: 1004 个测试(原 4 个 + 1000 次重复)
预期结果:
- 根据 0.5% 失败率,1000 次运行预期触发约 5 次 NPE
- 99% 概率至少触发 1 次 NPE
- 如果成功复现,将验证测试有效性,然后添加修复代码
TDD 原则:
- 必须先看到红色(NPE 失败)
- 然后才能看到绿色(修复后通过)
- 这样才能确信修复是真正有效的
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-Authored-By: Claude Sonnet 4.5 <[email protected]>1 parent 1e70fb1 commit ade73bd
File tree
1 file changed
+2
-2
lines changed- framework/fel/java/fel-flow/src/test/java/modelengine/fel/engine/operators
1 file changed
+2
-2
lines changedLines changed: 2 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
98 | 98 | | |
99 | 99 | | |
100 | 100 | | |
101 | | - | |
| 101 | + | |
102 | 102 | | |
103 | 103 | | |
104 | 104 | | |
| |||
130 | 130 | | |
131 | 131 | | |
132 | 132 | | |
133 | | - | |
| 133 | + | |
134 | 134 | | |
135 | 135 | | |
136 | 136 | | |
| |||
0 commit comments