mirror of
https://github.com/wassname/ray.git
synced 2026-07-01 22:23:13 +08:00
Test PingPort (#12954)
Co-authored-by: Richard Liaw <rliaw@berkeley.edu>
This commit is contained in:
@@ -69,6 +69,13 @@ TEST_F(RedisAsioTest, TestRedisCommands) {
|
||||
|
||||
std::shared_ptr<RedisContext> shard_context =
|
||||
std::make_shared<RedisContext>(io_service);
|
||||
ASSERT_TRUE(
|
||||
shard_context->PingPort(std::string("127.0.0.1"), TEST_REDIS_SERVER_PORTS.front())
|
||||
.ok());
|
||||
ASSERT_FALSE(
|
||||
shard_context
|
||||
->PingPort(std::string("127.0.0.1"), TEST_REDIS_SERVER_PORTS.front() + 987)
|
||||
.ok());
|
||||
ASSERT_TRUE(shard_context
|
||||
->Connect(std::string("127.0.0.1"), TEST_REDIS_SERVER_PORTS.front(),
|
||||
/*sharding=*/true,
|
||||
|
||||
Reference in New Issue
Block a user