How To Solve “Error: Timeout of 40000ms exceeded” in Solidity

…For async tests and hooks, ensure “done()” is called

Sabit
Auditor Brainpower
Published in
1 min readFeb 27, 2023

--

How To Solve “Error: Timeout of 40000ms exceeded” in Solidity
Photo by Fotis Fotopoulos on Unsplash
Error: Timeout of 40000ms exceeded. For async tests and hooks, ensure "done()" 
is called; if returning a Promise, ensure it resolves.

The above error happens when:

  • Chai has timed out.

--

--