Remove wrong code in list pot timeout test (#11805)
In #9373, actually need to replace `$rd $pop blist1{t} blist2{t} 1` with `bpop_command_two_key $rd $pop blist1{t} blist2{t} 1` but forgot to delete the latter. This doesn't affect the test, because the later assert_error "WRONGTYPE" is expected (and right). And if we read $rd again, it will get the wrong result, like 'ERR unknown command 'BLMPOP_LEFT' | 'BLMPOP_RIGHT'
This commit is contained in:
parent
a705184522
commit
7d5382c0ff
@ -1278,7 +1278,6 @@ foreach {pop} {BLPOP BLMPOP_LEFT} {
|
||||
r del blist1{t} blist2{t}
|
||||
r set blist2{t} nolist{t}
|
||||
bpop_command_two_key $rd $pop blist1{t} blist2{t} 1
|
||||
$rd $pop blist1{t} blist2{t} 1
|
||||
assert_error "WRONGTYPE*" {$rd read}
|
||||
$rd close
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user