aboutsummaryrefslogtreecommitdiffhomepage
path: root/test
diff options
context:
space:
mode:
authorGravatar Jan Tattermusch <jtattermusch@users.noreply.github.com>2016-05-19 13:19:10 -0700
committerGravatar Jan Tattermusch <jtattermusch@users.noreply.github.com>2016-05-19 13:19:10 -0700
commit505b13df845beaa97a81fa4d1d892a105521f433 (patch)
tree48f3e8841dbaa628f6f82ec20840ad792cfa4807 /test
parent10ff0de2e96c0819b1ca86d27ffdaa63cc6516f8 (diff)
parent006314ae3af7d0c6398ae46de321b1be347aad72 (diff)
Merge pull request #6576 from rjshade/fix_udp_server_test
Correct assertion for single FD being orphaned.
Diffstat (limited to 'test')
-rw-r--r--test/core/iomgr/udp_server_test.c7
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 1e7e4fad63..3152fb7a46 100644
--- a/test/core/iomgr/udp_server_test.c
+++ b/test/core/iomgr/udp_server_test.c
@@ -111,7 +111,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);
}
@@ -132,7 +132,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);
}
@@ -195,7 +195,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) {