Skip to content

Remove wrong code in list pop test#11805

Merged
oranagra merged 1 commit intoredis:unstablefrom
enjoy-binbin:remove_error_test_code
Feb 15, 2023
Merged

Remove wrong code in list pop test#11805
oranagra merged 1 commit intoredis:unstablefrom
enjoy-binbin:remove_error_test_code

Conversation

@enjoy-binbin
Copy link
Contributor

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'

In redis#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'
@enjoy-binbin enjoy-binbin changed the title Remove wrong code in list pot timeout test Remove wrong code in list pop test Feb 15, 2023
@oranagra oranagra merged commit 7d5382c into redis:unstable Feb 15, 2023
@enjoy-binbin enjoy-binbin deleted the remove_error_test_code branch February 15, 2023 06:05
enjoy-binbin added a commit to enjoy-binbin/redis that referenced this pull request Jul 31, 2023
In redis#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'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants