Skip to content

Commit cc04494

Browse files
authored
Merge pull request grpc#17666 from jtattermusch/reenable_tcp_server_posix_test2
Reenable tcp server posix test after applying workaround
2 parents 26dddbb + 7850704 commit cc04494

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

test/core/iomgr/BUILD

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -254,7 +254,6 @@ grpc_cc_test(
254254
name = "tcp_server_posix_test",
255255
srcs = ["tcp_server_posix_test.cc"],
256256
language = "C++",
257-
tags = ["manual"], # TODO(adelez): Remove once this works on Foundry.
258257
deps = [
259258
"//:gpr",
260259
"//:grpc",

test/core/iomgr/tcp_server_posix_test.cc

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -439,6 +439,11 @@ int main(int argc, char** argv) {
439439
static_cast<test_addrs*>(gpr_zalloc(sizeof(*dst_addrs)));
440440
grpc::testing::TestEnvironment env(argc, argv);
441441
grpc_init();
442+
// wait a few seconds to make sure IPv6 link-local addresses can be bound
443+
// if we are running under docker container that has just started.
444+
// See https://github.com/moby/moby/issues/38491
445+
// See https://github.com/grpc/grpc/issues/15610
446+
gpr_sleep_until(grpc_timeout_seconds_to_deadline(4));
442447
{
443448
grpc_core::ExecCtx exec_ctx;
444449
g_pollset = static_cast<grpc_pollset*>(gpr_zalloc(grpc_pollset_size()));

0 commit comments

Comments
 (0)