Skip to content

Commit

Permalink
add select
Browse files Browse the repository at this point in the history
  • Loading branch information
actboy168 committed Apr 19, 2024
1 parent e905410 commit a20c911
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions test/test_socket.lua
Original file line number Diff line number Diff line change
Expand Up @@ -399,6 +399,7 @@ function test_socket:test_udp()
local b_ep = b_fd:info "socket"
for _, MSG in ipairs { "", "123" } do
lt.assertEquals(a_fd:sendto(MSG, b_ep), #MSG)
simple_select(b_fd, "r")
local r, r_ep = b_fd:recvfrom()
lt.assertEquals(MSG, r)
lt.assertEquals(a_ep, r_ep)
Expand Down

0 comments on commit a20c911

Please sign in to comment.