I changed nothing and now tests don't pass. Test data doesn't work on the official redis server either

I passed the tests from the last stage ( #hw1 ). When starting the next one - blocking with $, I decided to just run the tests before writing any code and it failed with the very first ones. I then tried running the test commands on the official redis server and it failed there as well.
My failed tests:


Failed tests from official Redis Server

I don’t understand what ‘\x00’ is, why the official Redis Server gives an error as well or what is going on.

I really need some help here because I’m stuck. I tried looking for ‘\x00’ and it’s not $, then I don’t know what it is and the stage mentions nothing about it.

Our printed representation of these commands here is wrong (the \x00 in particular), we should have this fixed sometime this week or next.

The actual commands sent should be correct, we validate them against a real redis server multiple times on every change to the tester to make sure.

The correct command for xadd should look like:

redis-cli xadd apple 0-1 temperature 48

(Note there’s no quotes around “temperature 48”)

This should match what’s in the instructions:

1 Like

This is the test case, for reference: redis-tester/internal/test_streams_xread_block.go at 538df52f53444caf9d6f1ea1a4e4d5d5b83f0556 · codecrafters-io/redis-tester · GitHub

Thank you for your reply.

This topic was automatically closed 5 days after the last reply. New replies are no longer allowed.