-
Notifications
You must be signed in to change notification settings - Fork 2.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
pd: parse ALREADY_BOOTSTRAPPED error. #1720
Conversation
tests/pd/mock/mocker/bootstrap.rs
Outdated
#[derive(Debug)] | ||
pub struct Bootstrap {} | ||
|
||
impl Bootstrap { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
AlreadyBootstrap
can we test bootstrap_cluster in node.rs? |
@siddontang In node.rs, tests are using |
LGTM |
PTAL @BusyJay @overvenus |
LGTM |
@@ -69,6 +69,30 @@ fn test_rpc_client() { | |||
} | |||
|
|||
#[test] | |||
fn test_reboot() { | |||
let mut eps = vec![ | |||
"http://127.0.0.1:52730".to_owned(), |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should indent 4 more space.
|
||
let client = RpcClient::new(&eps.pop().unwrap()).unwrap(); | ||
|
||
assert_eq!(client.is_cluster_bootstrapped().unwrap(), false); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Use assert
instead.
Signed-off-by: Ping Yu <[email protected]>
No description provided.