Skip to content

Commit

Permalink
fix comments
Browse files Browse the repository at this point in the history
  • Loading branch information
Nicole00 committed Jul 15, 2021
1 parent 78d75de commit fc81ff0
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -114,14 +114,23 @@ public void testListOnlineHosts() {
Process p = runtime.exec(cmd);
p.waitFor(5, TimeUnit.SECONDS);
ProcessUtil.printProcessStatus(cmd, p);
Thread.sleep(12000); // wait to update the storaged's status to OFFLINE
Thread.sleep(5000); // wait to update the storaged's status to OFFLINE
} catch (Exception e) {
LOGGER.error("stop docker service cmd error, ", e);

LOGGER.error("stop docker service error, ", e);
assert (false);
}
if (metaClient == null) {
metaClient = new MetaClient(address, port);
}
assert (metaClient.listHosts().size() == 2);

try {
runtime.exec("docker start nebula-docker-compose_storaged0_1")
.waitFor(5, TimeUnit.SECONDS);
Thread.sleep(5000);
} catch (Exception e) {
LOGGER.error("start docker service error,", e);
assert (false);
}
}
}
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/* Copyright (c) 2020 vesoft inc. All rights reserved.
/* Copyright (c) 2021 vesoft inc. All rights reserved.
*
* This source code is licensed under Apache 2.0 License,
* attached with Common Clause Condition 1.0, found in the LICENSES directory.
Expand Down
6 changes: 3 additions & 3 deletions client/src/test/resources/docker-compose.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ services:
- --v=0
- --minloglevel=0
- --heartbeat_interval_secs=2
- --expired_time_factor=5
- --expired_time_factor=2
healthcheck:
test: ["CMD", "curl", "-f", "http://172.28.1.1:11000/status"]
interval: 30s
Expand Down Expand Up @@ -51,7 +51,7 @@ services:
- --v=0
- --minloglevel=0
- --heartbeat_interval_secs=2
- --expired_time_factor=5
- --expired_time_factor=2
healthcheck:
test: ["CMD", "curl", "-f", "http://172.28.1.2:11000/status"]
interval: 30s
Expand Down Expand Up @@ -87,7 +87,7 @@ services:
- --v=0
- --minloglevel=0
- --heartbeat_interval_secs=2
- --expired_time_factor=5
- --expired_time_factor=2
healthcheck:
test: ["CMD", "curl", "-f", "http://172.28.1.3:11000/status"]
interval: 30s
Expand Down

0 comments on commit fc81ff0

Please sign in to comment.