Anonymous Message Board Project Tests Not Passing

I’m trying to complete the message board project and everything works fine. But Test no.10 can’t pass because of time out.

  1. You can send a DELETE request to /api/replies/{board} and pass along the thread_id , reply_id & delete_password . Returned will be the string incorrect password or success . On success, the text of the reply_id will be changed to [deleted]. (Test timed out)

Here is my source code: GitHub - MinnKhantZ/message-board: This project is created as a project for freecodecamp course.

I run my code on gitpod and I can delete replies with a message “success” for valid password and “incorrect password” for invalid ones.

That test passes for me with my own DB. Try deleting the collection and submit it again.


BTW, you shouldn’t have your connection string in the code. Use an env file. Change the password after you have done so.

1 Like

Thanks @lasjorg . It works after clearing collections. And you are right, I should not include my connection string in public repo. I will change it.

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