diff options
Diffstat (limited to '')
-rw-r--r-- | tests/timer.lua | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/tests/timer.lua b/tests/timer.lua index 4da1a50..ac8b385 100644 --- a/tests/timer.lua +++ b/tests/timer.lua | |||
@@ -94,8 +94,11 @@ lanes.timer( linda, T2, 0 ) | |||
94 | linda:receive( 0, T1 ) -- clear out; there could be one tick left | 94 | linda:receive( 0, T1 ) -- clear out; there could be one tick left |
95 | linda:receive( 0, T2 ) | 95 | linda:receive( 0, T2 ) |
96 | 96 | ||
97 | assert( linda:get(T1) == nil ) | 97 | local _count, _val = linda:get(T1) |
98 | assert( linda:get(T2) == nil ) | 98 | assert(_count == 0 and _val == nil) |
99 | |||
100 | local _count, _val = linda:get(T2) | ||
101 | assert(_count == 0 and _val == nil) | ||
99 | 102 | ||
100 | PRINT "...making sure no ticks are coming..." | 103 | PRINT "...making sure no ticks are coming..." |
101 | 104 | ||