Information Security Projects - Anonymous Message Board

Tell us what’s happening:

I can’t get no 5 to pass, it seems to not be able to read the text field but the string is in the database and is showing correctly. Also if I run it a second time the test seems to use the previous test’s data.

###Images

###Your project link(s)

solution: https://github.com/unkwnreaper/Anonymous-Message-Board

Your browser information:

User Agent is: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/127.0.0.0 Safari/537.36 OPR/113.0.0.0

Challenge Information:

Information Security Projects - Anonymous Message Board

Don’t create async .then() callbacks. Use async/await with an async route handler.

If I fix that, I can make your code pass on the initial run with a fresh collection. Then it will fail on the next run as the threads/replies are returned (or created) in the wrong order. If you open the browser console, you can see the date added to the text property doesn’t match the expected value. If you look at the request/response you can see the expected object is the last, not the first, and the test looks at the first element.

Hi, thanks for the help, I did manage to get it to pass, by clearing the collections before each test and waiting for the thread to appear in the database before doing the redirect, I am now trying to get the sorting to actually work since it doesn’t seem to do anything right now.

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