diff options
author | Robbie Shade <rjshade@google.com> | 2016-05-13 10:35:02 -0400 |
---|---|---|
committer | Robbie Shade <rjshade@google.com> | 2016-05-13 10:35:02 -0400 |
commit | 006314ae3af7d0c6398ae46de321b1be347aad72 (patch) | |
tree | 7cbc7c6ba0c5dcf28b51913ae0f56ed1290a6236 /test/core | |
parent | f11f2b1b69aeceb3deb3be3e68a6e5fa759d194c (diff) |
Correct assertion for single FD being orphaned. Consistent comments.
Diffstat (limited to 'test/core')
-rw-r--r-- | test/core/iomgr/udp_server_test.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/test/core/iomgr/udp_server_test.c b/test/core/iomgr/udp_server_test.c index a29a68eb33..a3e6523880 100644 --- a/test/core/iomgr/udp_server_test.c +++ b/test/core/iomgr/udp_server_test.c @@ -109,7 +109,7 @@ static void test_no_op_with_port(void) { grpc_udp_server_destroy(&exec_ctx, s, NULL); grpc_exec_ctx_finish(&exec_ctx); - /* The server had a single FD, which should be orphaned. */ + /* The server had a single FD, which should have been orphaned. */ GPR_ASSERT(g_number_of_orphan_calls == 1); } @@ -130,7 +130,7 @@ static void test_no_op_with_port_and_start(void) { grpc_udp_server_destroy(&exec_ctx, s, NULL); grpc_exec_ctx_finish(&exec_ctx); - /* The server had a single FD which should be orphaned. */ + /* The server had a single FD, which should have been orphaned. */ GPR_ASSERT(g_number_of_orphan_calls == 1); } @@ -193,7 +193,8 @@ static void test_receive(int number_of_clients) { grpc_udp_server_destroy(&exec_ctx, s, NULL); grpc_exec_ctx_finish(&exec_ctx); - GPR_ASSERT(g_number_of_orphan_calls == 5); + /* The server had a single FD, which should have been orphaned. */ + GPR_ASSERT(g_number_of_orphan_calls == 1); } static void destroy_pollset(grpc_exec_ctx *exec_ctx, void *p, bool success) { |