diff options
| -rw-r--r-- | test/testclnt.lua | 13 |
1 files changed, 9 insertions, 4 deletions
diff --git a/test/testclnt.lua b/test/testclnt.lua index b4b7063..ee716f9 100644 --- a/test/testclnt.lua +++ b/test/testclnt.lua | |||
| @@ -617,7 +617,8 @@ end | |||
| 617 | 617 | ||
| 618 | ------------------------------------------------------------------------ | 618 | ------------------------------------------------------------------------ |
| 619 | test("method registration") | 619 | test("method registration") |
| 620 | test_methods(socket.tcp(), { | 620 | |
| 621 | local tcp_methods = { | ||
| 621 | "accept", | 622 | "accept", |
| 622 | "bind", | 623 | "bind", |
| 623 | "close", | 624 | "close", |
| @@ -637,9 +638,11 @@ test_methods(socket.tcp(), { | |||
| 637 | "setsockname", | 638 | "setsockname", |
| 638 | "settimeout", | 639 | "settimeout", |
| 639 | "shutdown", | 640 | "shutdown", |
| 640 | }) | 641 | } |
| 642 | test_methods(socket.tcp(), tcp_methods) | ||
| 643 | test_methods(socket.tcp6(), tcp_methods) | ||
| 641 | 644 | ||
| 642 | test_methods(socket.udp(), { | 645 | local udp_methods = { |
| 643 | "close", | 646 | "close", |
| 644 | "getpeername", | 647 | "getpeername", |
| 645 | "dirty", | 648 | "dirty", |
| @@ -655,7 +658,9 @@ test_methods(socket.udp(), { | |||
| 655 | "setpeername", | 658 | "setpeername", |
| 656 | "setsockname", | 659 | "setsockname", |
| 657 | "settimeout" | 660 | "settimeout" |
| 658 | }) | 661 | } |
| 662 | test_methods(socket.udp(), udp_methods) | ||
| 663 | test_methods(socket.udp6(), udp_methods) | ||
| 659 | 664 | ||
| 660 | test("partial receive") | 665 | test("partial receive") |
| 661 | test_partialrecv() | 666 | test_partialrecv() |
