aboutsummaryrefslogtreecommitdiffhomepage
path: root/test/core/iomgr
diff options
context:
space:
mode:
authorGravatar Dan Zhang <danzh@google.com>2017-12-22 13:33:44 -0500
committerGravatar Dan Zhang <danzh@google.com>2017-12-22 13:33:44 -0500
commit40ebe9af7f5f5a918b14286ffdebdf55c7f0c74b (patch)
treed5e709893b69a883b1b0cb4dfb61889e98139491 /test/core/iomgr
parent8fba583796d9480c376cfb0ff7e25fd0ce6fdea0 (diff)
fix typo
Diffstat (limited to 'test/core/iomgr')
-rw-r--r--test/core/iomgr/udp_server_test.cc14
1 files changed, 7 insertions, 7 deletions
diff --git a/test/core/iomgr/udp_server_test.cc b/test/core/iomgr/udp_server_test.cc
index 12be8027ec..e676995753 100644
--- a/test/core/iomgr/udp_server_test.cc
+++ b/test/core/iomgr/udp_server_test.cc
@@ -136,7 +136,7 @@ static void destroy_pollset(void* p, grpc_error* error) {
grpc_pollset_destroy(static_cast<grpc_pollset*>(p));
}
-static void shutdwn_and_destroy_pollset() {
+static void shutdown_and_destroy_pollset() {
auto closure = GRPC_CLOSURE_CREATE(destroy_pollset, g_pollset,
grpc_schedule_on_exec_ctx);
grpc_pollset_shutdown(g_pollset, closure);
@@ -150,7 +150,7 @@ static void test_no_op(void) {
grpc_udp_server* s = grpc_udp_server_create(nullptr);
LOG_TEST("test_no_op");
grpc_udp_server_destroy(s, nullptr);
- shutdwn_and_destroy_pollset();
+ shutdown_and_destroy_pollset();
}
static void test_no_op_with_start(void) {
@@ -160,7 +160,7 @@ static void test_no_op_with_start(void) {
LOG_TEST("test_no_op_with_start");
grpc_udp_server_start(s, nullptr, 0, nullptr);
grpc_udp_server_destroy(s, nullptr);
- shutdwn_and_destroy_pollset();
+ shutdown_and_destroy_pollset();
}
static void test_no_op_with_port(void) {
@@ -182,7 +182,7 @@ static void test_no_op_with_port(void) {
/* The server had a single FD, which should have been orphaned. */
GPR_ASSERT(g_number_of_orphan_calls == 1);
- shutdwn_and_destroy_pollset();
+ shutdown_and_destroy_pollset();
}
static void test_no_op_with_port_and_socket_factory(void) {
@@ -216,7 +216,7 @@ static void test_no_op_with_port_and_socket_factory(void) {
/* The server had a single FD, which should have been orphaned. */
GPR_ASSERT(g_number_of_orphan_calls == 1);
- shutdwn_and_destroy_pollset();
+ shutdown_and_destroy_pollset();
}
static void test_no_op_with_port_and_start(void) {
@@ -241,7 +241,7 @@ static void test_no_op_with_port_and_start(void) {
/* The server had a single FD, which is orphaned exactly once in *
* grpc_udp_server_destroy. */
GPR_ASSERT(g_number_of_orphan_calls == 1);
- shutdwn_and_destroy_pollset();
+ shutdown_and_destroy_pollset();
}
static void test_receive(int number_of_clients) {
@@ -308,7 +308,7 @@ static void test_receive(int number_of_clients) {
/* The server had a single FD, which is orphaned exactly once in *
* grpc_udp_server_destroy. */
GPR_ASSERT(g_number_of_orphan_calls == 1);
- shutdwn_and_destroy_pollset();
+ shutdown_and_destroy_pollset();
}
int main(int argc, char** argv) {