4paradigm / 4paradigm/OpenMLDB

ut: cpp ut support option zk_host:zk_port

Open
#2,149 0 comments 0 reactions 1 assignee Claimed by @vagetablechicken View on GitHub
enhancement test
Dominant language
C++
Stars
1.7k
Forks
331
Avg merge
12d 12h
Merged PRs (30d)
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
```

Contributor guide

Open the contributing guide

Research direction

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.

Written by the indexing model from the issue text.

Assessment

Tech stack
cpp
Domain
testing
Issue type
Feature
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Stale
Clarity
Clearly specified
Newbie friendliness
40/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.