Play Framework 2.2 - Could not find implicit value for timeout parameter

I am testing the call using the following code:

"status OK" in {
  status(doFakeRequest) === OK
}

The call statuscauses the following compilation error: could not find implicit value for parameter timeout: akka.util.Timeout

+4
source share
1 answer

This is because the functions Helpershave changed. The timeout can now be changed for each function.

I needed to add the following import:

import play.api.test.Helpers.defaultAwaitTimeout
+7
source

All Articles