corrected type of variable to get correct rank

- adjusted tests/support/server.tcl to correctly work with Redis for Windows

Fixes #23.
This commit is contained in:
Tomasz Poradowski
2018-07-31 14:20:29 +02:00
parent 6262460fdf
commit 155111f7e4
2 changed files with 3 additions and 3 deletions
+1 -1
View File
@@ -3041,7 +3041,7 @@ void zrankGenericCommand(client *c, int reverse) {
robj *key = c->argv[1];
robj *ele = c->argv[2];
robj *zobj;
PORT_ULONG rank;
PORT_LONG rank;
if ((zobj = lookupKeyReadOrReply(c,key,shared.nullbulk)) == NULL ||
checkType(c,zobj,OBJ_ZSET)) return;
+2 -2
View File
@@ -305,7 +305,7 @@ proc start_server {options {code undefined}} {
# Wait for actual startup
while {![info exists _pid]} {
regexp {PID:\s(\d+)} [exec cat $stdout] _ _pid
regexp -nocase {PID[:=]\s*(\d+)} [exec cat $stdout] _ _pid
after 100
}
@@ -334,7 +334,7 @@ proc start_server {options {code undefined}} {
while 1 {
# check that the server actually started and is ready for connections
if {[exec grep "ready to accept" | wc -l < $stdout] > 0} {
if {[exec grep -i "ready to accept" | wc -l < $stdout] > 0} {
break
}
after 10