build-your-own-redis icon indicating copy to clipboard operation
build-your-own-redis copied to clipboard

[streams] Blocking reads compare strictly

Open lipinskipawel opened this issue 1 year ago • 2 comments

Hello I enjoy your website and implementing your challenges are fun :)

However, I think I faced a small bug during streams stage at "Blocking reads" task. The tester is comparing responses strictly instead of using some sort of containsAll assertion. Is this intentional or I should fix my code?

image

lipinskipawel avatar Mar 28 '24 20:03 lipinskipawel

Hey @lipinskipawel! Thanks for reporting this, it looks like the official Redis implementation does always return these in the same order as the stream keys in the command.

I'll keep this open so that we can add a note to the instructions + we'll also see if there's an official note either in the Redis docs / source code about this behaviour that we can link to.

rohitpaulk avatar Mar 28 '24 21:03 rohitpaulk