From 7d5382c0ffb23f5f7e81eb34ad813643039ad417 Mon Sep 17 00:00:00 2001 From: Binbin Date: Wed, 15 Feb 2023 13:46:56 +0800 Subject: [PATCH] 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' --- tests/unit/type/list.tcl | 1 - 1 file changed, 1 deletion(-) diff --git a/tests/unit/type/list.tcl b/tests/unit/type/list.tcl index 7a3768025..dee8482bf 100644 --- a/tests/unit/type/list.tcl +++ b/tests/unit/type/list.tcl @@ -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 }