tiny bug in test.
This commit is contained in:
parent
b1a4ad2b19
commit
b2b7e9cef1
3 changed files with 8 additions and 12 deletions
|
@ -447,11 +447,14 @@ function getstats_test()
|
|||
str = data:receive(%d)
|
||||
data:send(str)
|
||||
]], c))
|
||||
c:send(string.rep("a", c))
|
||||
c:receive(c)
|
||||
local r, s, a = c:getstats()
|
||||
assert(r == t, "received count failed")
|
||||
assert(s == t, "sent count failed")
|
||||
data:send(string.rep("a", c))
|
||||
data:receive(c)
|
||||
t = t + c
|
||||
local r, s, a = data:getstats()
|
||||
assert(r == t, "received count failed" .. tostring(r)
|
||||
.. "/" .. tostring(t))
|
||||
assert(s == t, "sent count failed" .. tostring(s)
|
||||
.. "/" .. tostring(t))
|
||||
end
|
||||
print("ok")
|
||||
end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue