Fix merge issue with module test script
Former-commit-id: 10d254ec1bcdd9c25e373bbf882db244fecb65d1
This commit is contained in:
parent
42f5d1a175
commit
e5691036d9
@ -31,7 +31,6 @@ $TCLSH tests/test_helper.tcl \
|
|||||||
--single unit/moduleapi/blockedclient \
|
--single unit/moduleapi/blockedclient \
|
||||||
--single unit/moduleapi/moduleloadsave \
|
--single unit/moduleapi/moduleloadsave \
|
||||||
--single unit/moduleapi/getkeys \
|
--single unit/moduleapi/getkeys \
|
||||||
--single unit/moduleapi/timers \
|
|
||||||
--single unit/moduleapi/test_lazyfree \
|
--single unit/moduleapi/test_lazyfree \
|
||||||
--single unit/moduleapi/defrag \
|
--single unit/moduleapi/defrag \
|
||||||
--single unit/moduleapi/hash \
|
--single unit/moduleapi/hash \
|
||||||
|
@ -1,35 +0,0 @@
|
|||||||
set testmodule [file normalize tests/modules/timers.so]
|
|
||||||
set timercount 4000
|
|
||||||
|
|
||||||
|
|
||||||
tags "modules" {
|
|
||||||
test {Ascending module timers can load in correctly} {
|
|
||||||
start_server [list overrides [list loadmodule "$testmodule ascending $timercount"]] {
|
|
||||||
wait_for_condition [expr round($timercount/10)] 20 {
|
|
||||||
[r timer.elapsed] == $timercount
|
|
||||||
} else {
|
|
||||||
fail "Server failed to load in timers with ascending periods"
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
test {Descending module timers can load in correctly} {
|
|
||||||
start_server [list overrides [list loadmodule "$testmodule descending $timercount"]] {
|
|
||||||
wait_for_condition [expr round($timercount/10)] 20 {
|
|
||||||
[r timer.elapsed] == $timercount
|
|
||||||
} else {
|
|
||||||
fail "Server failed to load in timers with descending periods"
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
test {Module timers with the same period can load in correctly} {
|
|
||||||
start_server [list overrides [list loadmodule "$testmodule same $timercount"]] {
|
|
||||||
wait_for_condition [expr round($timercount/10)] 20 {
|
|
||||||
[r timer.elapsed] == $timercount
|
|
||||||
} else {
|
|
||||||
fail "Server failed to load in timers with the same period"
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
Loading…
x
Reference in New Issue
Block a user