What does the Timeout error mean?

tdd

#1

Question

What does a Timeout error mean?

Answer

A Timeout error is commonly generated when an action or command is wating for data that is not coming in, for example in this exercise we are trying to test the database and we hope for a connection, but we never receive confirmation that the connection has been succesful, therefore the program is stopped and the Timeout executed to let us know that there was no successful connexion. To evade this kind of problem, you will have to implement beforeEach and afterEach methods to stablish that connection with the database.