Skip to content

Commit

Permalink
Don't use ep after destroy in the test.
Browse files Browse the repository at this point in the history
  • Loading branch information
daniel-j-born committed Jan 7, 2016
1 parent 76d21f9 commit a7ed54c
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions test/core/iomgr/tcp_posix_test.c
Original file line number Diff line number Diff line change
Expand Up @@ -437,7 +437,6 @@ static void release_fd_test(size_t num_bytes, size_t slice_size) {

gpr_slice_buffer_destroy(&state.incoming);
grpc_tcp_destroy_and_release_fd(&exec_ctx, ep, &fd, &fd_released_cb);
GPR_ASSERT(grpc_tcp_fd(ep) < 0);
gpr_mu_lock(GRPC_POLLSET_MU(&g_pollset));
while (!fd_released_done) {
grpc_pollset_worker worker;
Expand All @@ -446,7 +445,6 @@ static void release_fd_test(size_t num_bytes, size_t slice_size) {
}
gpr_mu_unlock(GRPC_POLLSET_MU(&g_pollset));
GPR_ASSERT(fd_released_done == 1);
GPR_ASSERT(grpc_tcp_fd(ep) < 0);
GPR_ASSERT(fd == sv[1]);
grpc_exec_ctx_finish(&exec_ctx);

Expand Down

0 comments on commit a7ed54c

Please sign in to comment.