diff options
Diffstat (limited to 'tests/timer.lua')
-rw-r--r-- | tests/timer.lua | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/timer.lua b/tests/timer.lua index c6f510b..84e6dec 100644 --- a/tests/timer.lua +++ b/tests/timer.lua | |||
@@ -35,7 +35,7 @@ local caught= {} -- { [T1]= bool, [T2]= bool } | |||
35 | 35 | ||
36 | while true do | 36 | while true do |
37 | io.stderr:write("waiting...\t") | 37 | io.stderr:write("waiting...\t") |
38 | local v,channel= linda:receive( 6.0, T1,T2 ) | 38 | local channel, v = linda:receive( 6.0, T1,T2 ) |
39 | assert( channel==T1 or channel==T2 ) | 39 | assert( channel==T1 or channel==T2 ) |
40 | caught[channel]= true | 40 | caught[channel]= true |
41 | 41 | ||
@@ -89,6 +89,6 @@ assert( linda:get(T2) == nil ) | |||
89 | 89 | ||
90 | PRINT "...making sure no ticks are coming..." | 90 | PRINT "...making sure no ticks are coming..." |
91 | 91 | ||
92 | local v= linda:receive( 1.5, T1,T2 ) -- should not get any | 92 | local k,v= linda:receive( 10, T1,T2 ) -- should not get any |
93 | assert(v==nil) | 93 | assert(v==nil) |
94 | 94 | ||