aboutsummaryrefslogtreecommitdiff
path: root/test/testclnt.lua
diff options
context:
space:
mode:
authorDiego Nehab <diego@tecgraf.puc-rio.br>2004-07-02 18:58:23 +0000
committerDiego Nehab <diego@tecgraf.puc-rio.br>2004-07-02 18:58:23 +0000
commitb2b7e9cef1bbe70018505cd4bc222058d7e6f106 (patch)
tree15efbebbe6229d82be8bbfbc7f544a1b5d763a68 /test/testclnt.lua
parentb1a4ad2b1996936744c679e6ae563986ff701a3a (diff)
downloadluasocket-b2b7e9cef1bbe70018505cd4bc222058d7e6f106.tar.gz
luasocket-b2b7e9cef1bbe70018505cd4bc222058d7e6f106.tar.bz2
luasocket-b2b7e9cef1bbe70018505cd4bc222058d7e6f106.zip
tiny bug in test.
Diffstat (limited to 'test/testclnt.lua')
-rw-r--r--test/testclnt.lua13
1 files changed, 8 insertions, 5 deletions
diff --git a/test/testclnt.lua b/test/testclnt.lua
index cdd2c08..ffe487f 100644
--- a/test/testclnt.lua
+++ b/test/testclnt.lua
@@ -447,11 +447,14 @@ function getstats_test()
447 str = data:receive(%d) 447 str = data:receive(%d)
448 data:send(str) 448 data:send(str)
449 ]], c)) 449 ]], c))
450 c:send(string.rep("a", c)) 450 data:send(string.rep("a", c))
451 c:receive(c) 451 data:receive(c)
452 local r, s, a = c:getstats() 452 t = t + c
453 assert(r == t, "received count failed") 453 local r, s, a = data:getstats()
454 assert(s == t, "sent count failed") 454 assert(r == t, "received count failed" .. tostring(r)
455 .. "/" .. tostring(t))
456 assert(s == t, "sent count failed" .. tostring(s)
457 .. "/" .. tostring(t))
455 end 458 end
456 print("ok") 459 print("ok")
457end 460end