diff options
author | Jan Tattermusch <jtattermusch@users.noreply.github.com> | 2019-01-09 10:46:27 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-01-09 10:46:27 +0100 |
commit | cc0449465fb76516c15c05cacc1c624e471f2014 (patch) | |
tree | 5ee4abb31709273dab8359f78de3630a6e9e2d76 /test/core/iomgr | |
parent | 26dddbb10dfc74db458d975f42346a9d677ca5ed (diff) | |
parent | 7850704d644e41c03ee41a7b6a7aad24b75e4a1d (diff) |
Merge pull request #17666 from jtattermusch/reenable_tcp_server_posix_test2
Reenable tcp server posix test after applying workaround
Diffstat (limited to 'test/core/iomgr')
-rw-r--r-- | test/core/iomgr/BUILD | 1 | ||||
-rw-r--r-- | test/core/iomgr/tcp_server_posix_test.cc | 5 |
2 files changed, 5 insertions, 1 deletions
diff --git a/test/core/iomgr/BUILD b/test/core/iomgr/BUILD index 5acf269988..7daabd5052 100644 --- a/test/core/iomgr/BUILD +++ b/test/core/iomgr/BUILD @@ -254,7 +254,6 @@ grpc_cc_test( name = "tcp_server_posix_test", srcs = ["tcp_server_posix_test.cc"], language = "C++", - tags = ["manual"], # TODO(adelez): Remove once this works on Foundry. deps = [ "//:gpr", "//:grpc", diff --git a/test/core/iomgr/tcp_server_posix_test.cc b/test/core/iomgr/tcp_server_posix_test.cc index 2c66cdec77..81e26b20cd 100644 --- a/test/core/iomgr/tcp_server_posix_test.cc +++ b/test/core/iomgr/tcp_server_posix_test.cc @@ -439,6 +439,11 @@ int main(int argc, char** argv) { static_cast<test_addrs*>(gpr_zalloc(sizeof(*dst_addrs))); grpc::testing::TestEnvironment env(argc, argv); grpc_init(); + // wait a few seconds to make sure IPv6 link-local addresses can be bound + // if we are running under docker container that has just started. + // See https://github.com/moby/moby/issues/38491 + // See https://github.com/grpc/grpc/issues/15610 + gpr_sleep_until(grpc_timeout_seconds_to_deadline(4)); { grpc_core::ExecCtx exec_ctx; g_pollset = static_cast<grpc_pollset*>(gpr_zalloc(grpc_pollset_size())); |