Play Framework test helpers need implicit `Materializer`

后端 未结 3 1664
我寻月下人不归
我寻月下人不归 2021-01-06 11:36

I\'m using Play 2.6.x and the test helper for status(result) has the method:
def status(of: Accumulator[ByteString, Result])(implicit timeout: Timeout

3条回答
  •  花落未央
    2021-01-06 11:57

    there's also a status method in the form:

    def status(of: Future[Result])(implicit timeout: Timeout): Int
    

    make sure the controller return type is correct so the action returns a Future[Result]

提交回复
热议问题