4paradigm / 4paradigm/OpenMLDB
ut: cpp ut support option zk_host:zk_port
未关闭
enhancement
test
- 主要语言
- C++
- 星标
- 1.7k
- 派生
- 331
- 平均合并
- 12 天 12 小时
- 30 天内合并 PR
- 1
描述
Cpp ut defines zk port 6181 in code. If we want to modify it, we should rebuild the binary files. It's not good for testing.
We should support:
```
./build/bin/xxx_test --port 2181
```
贡献指南
调研方向
The issue mentions C++ unit tests that hardcode a ZooKeeper port. Look for test binaries in ./build/bin/ that end with _test. The change involves adding command-line argument parsing (like --port) to these test executables, likely in their main() function. Check existing test code for similar argument handling. After modifying, rebuild the test binary and verify it accepts the new port option.
由索引模型根据 Issue 内容生成。
评估
- 技术栈
- cpp
- 领域
- testing
- Issue 类型
- 功能
- 难度
- 2/5
- 预计耗时
- 1-3 小时
- 活跃度
- 停滞
- 描述清晰度
- 描述清楚
- 新手友好度
- 40/100