Redis test cases failing in prod

My code work perfectly fine in local but when I push to master it fails, last time, I got it working was by making continuous push to master again again till it passed and unlocked next stage

Hi @sparshkandpal, could you upload your code to GitHub and share the link? It will be much easier to debug if I can run it directly.

The varying results across multiple pushes suggest there might be a race condition causing the issue.

I have added the link

Thanks for sharing the link! I will take a look by the end of next week.

Hi @sparshkandpal, sorry for not asking earlier—could you clarify which stage you were having trouble with and what errors you encountered?

I was having troubles with the replication extension.

Would you mind being more specific?

For example, which stage are you referring to, and what specific errors are you encountering?

for the wait command, sometimes it pass sometimes it fails,
I patched a fix for this though

This approach will not work for the last stage of the replication extension:

elsif inputs[0].casecmp('WAIT').zero?
      response = ":#{@slave_sockets.size}\r\n"

I recommend reviewing the official documentation on the WAIT command for more context:

Let me know if you have any questions or need further clarification!

I was on the last challenge, but it is blocked now. I also wanted to refactor my code but I don’t have a method to test if refactoring is breaking.
Can you help me out with this?

Also, it’s not syncing with my GitHub. I wanted to write a medium article on the Redis I built and post it on LinkedIn, but I can’t as latest code is not there.
Can you help me out with this part?

The Redis challenge was the free challenge for November, but it’s no longer free in December.

If you’d like, you can refer your friends to earn free access to paid content on our site.

I still need help publishing my already written code to github.

Could you try deleting your GitHub repo and then re-publishing it?

Closing this thread due to inactivity. If you still need assistance, feel free to reopen or start a new discussion!