4paradigm / 4paradigm/OpenMLDB
ut: cpp ut support option zk_host:zk_port
- Langage dominant
- C++
- Étoiles
- 1.7k
- Forks
- 331
- Merge moyen
- 12 j 12 h
- PR mergées (30 j)
- 1
Description
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
```
Guide de contribution
Ouvrir le guide de contribution
Piste de recherche
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.
Rédigé par le modèle d'indexation à partir du texte de l'issue.
Évaluation
- Stack technique
- cpp
- Domaine
- testing
- Type d'issue
- Fonctionnalité
- Difficulté
- 2/5
- Temps estimé
- 1-3 heures
- Activité
- À l'abandon
- Clarté
- Clairement spécifiée
- Accessibilité débutants
- 40/100