diff options
Diffstat (limited to 'test/testclnt.lua')
-rw-r--r-- | test/testclnt.lua | 27 |
1 files changed, 15 insertions, 12 deletions
diff --git a/test/testclnt.lua b/test/testclnt.lua index 556e54d..f5c0361 100644 --- a/test/testclnt.lua +++ b/test/testclnt.lua | |||
@@ -11,6 +11,7 @@ end | |||
11 | function fail(...) | 11 | function fail(...) |
12 | local s = string.format(unpack(arg)) | 12 | local s = string.format(unpack(arg)) |
13 | io.stderr:write("ERROR: ", s, "!\n") | 13 | io.stderr:write("ERROR: ", s, "!\n") |
14 | socket.sleep(3) | ||
14 | os.exit() | 15 | os.exit() |
15 | end | 16 | end |
16 | 17 | ||
@@ -432,6 +433,20 @@ function rebind_test() | |||
432 | end | 433 | end |
433 | 434 | ||
434 | ------------------------------------------------------------------------ | 435 | ------------------------------------------------------------------------ |
436 | |||
437 | test("character line") | ||
438 | test_asciiline(1) | ||
439 | test_asciiline(17) | ||
440 | test_asciiline(200) | ||
441 | test_asciiline(4091) | ||
442 | test_asciiline(80199) | ||
443 | test_asciiline(8000000) | ||
444 | test_asciiline(80199) | ||
445 | test_asciiline(4091) | ||
446 | test_asciiline(200) | ||
447 | test_asciiline(17) | ||
448 | test_asciiline(1) | ||
449 | |||
435 | test("method registration") | 450 | test("method registration") |
436 | test_methods(socket.tcp(), { | 451 | test_methods(socket.tcp(), { |
437 | "accept", | 452 | "accept", |
@@ -498,18 +513,6 @@ test_mixed(200) | |||
498 | test_mixed(17) | 513 | test_mixed(17) |
499 | test_mixed(1) | 514 | test_mixed(1) |
500 | 515 | ||
501 | test("character line") | ||
502 | test_asciiline(1) | ||
503 | test_asciiline(17) | ||
504 | test_asciiline(200) | ||
505 | test_asciiline(4091) | ||
506 | test_asciiline(80199) | ||
507 | test_asciiline(8000000) | ||
508 | test_asciiline(80199) | ||
509 | test_asciiline(4091) | ||
510 | test_asciiline(200) | ||
511 | test_asciiline(17) | ||
512 | test_asciiline(1) | ||
513 | 516 | ||
514 | test("binary line") | 517 | test("binary line") |
515 | reconnect() | 518 | reconnect() |