diff options
Diffstat (limited to 'examples/redis-unstable/tests/unit/moduleapi/eventloop.tcl')
| -rw-r--r-- | examples/redis-unstable/tests/unit/moduleapi/eventloop.tcl | 28 |
1 files changed, 0 insertions, 28 deletions
diff --git a/examples/redis-unstable/tests/unit/moduleapi/eventloop.tcl b/examples/redis-unstable/tests/unit/moduleapi/eventloop.tcl deleted file mode 100644 index ba0d4a2..0000000 --- a/examples/redis-unstable/tests/unit/moduleapi/eventloop.tcl +++ /dev/null | |||
| @@ -1,28 +0,0 @@ | |||
| 1 | set testmodule [file normalize tests/modules/eventloop.so] | ||
| 2 | |||
| 3 | start_server {tags {"modules external:skip"}} { | ||
| 4 | r module load $testmodule | ||
| 5 | |||
| 6 | test "Module eventloop sendbytes" { | ||
| 7 | assert_match "OK" [r test.sendbytes 5000000] | ||
| 8 | assert_match "OK" [r test.sendbytes 2000000] | ||
| 9 | } | ||
| 10 | |||
| 11 | test "Module eventloop iteration" { | ||
| 12 | set iteration [r test.iteration] | ||
| 13 | set next_iteration [r test.iteration] | ||
| 14 | assert {$next_iteration > $iteration} | ||
| 15 | } | ||
| 16 | |||
| 17 | test "Module eventloop sanity" { | ||
| 18 | r test.sanity | ||
| 19 | } | ||
| 20 | |||
| 21 | test "Module eventloop oneshot" { | ||
| 22 | r test.oneshot | ||
| 23 | } | ||
| 24 | |||
| 25 | test "Unload the module - eventloop" { | ||
| 26 | assert_equal {OK} [r module unload eventloop] | ||
| 27 | } | ||
| 28 | } | ||
