Skip to content

Commit c9547d5

Browse files
author
halx99
committed
Update lua test
1 parent 849e3c8 commit c9547d5

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

msvc/luatest/example.lua

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ server:start_service(hostents, function(event)
3939
local obs = proto.e101(msg)
4040
local data = obs:to_string()
4141
local data_partial1 = data:sub(1, #data - 10)
42-
server:write(transport, data .. data)
42+
server:write(transport, data_partial1)
4343

4444
print('The remain data will be sent after 6 seconds...')
4545
transport1 = transport
@@ -124,7 +124,7 @@ local function yasio_update(dt)
124124
client:dispatch_events(128)
125125
httpclient:dispatch_events(128)
126126
elapsedTime = elapsedTime + dt
127-
if elapsedTime > 10000 and not partial2Sent then
127+
if elapsedTime > 6 and not partial2Sent then
128128
partial2Sent = true
129129
server:write(transport1, data_partial2)
130130
end

msvc/luatest/luatest.exe

-78.5 KB
Binary file not shown.

0 commit comments

Comments
 (0)