简体   繁体   English

Play Framework 2.2 - 找不到参数超时的隐含值

[英]Play Framework 2.2 - could not find implicit value for parameter timeout

I am testing a call using the following code: 我正在使用以下代码测试呼叫:

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

The call to status gives the following compile error: could not find implicit value for parameter timeout: akka.util.Timeout status的调用给出以下编译错误: could not find implicit value for parameter timeout: akka.util.Timeout

This is because the Helpers functions have changed. 这是因为Helpers功能已经改变。 The timeout can now be changed for each function. 现在可以为每个功能更改超时。

I needed to add the following import: 我需要添加以下导入:

import play.api.test.Helpers.defaultAwaitTimeout

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 使用Akka播放2.5 - 找不到参数超时的隐含值:akka.util.Timeout - Play 2.5 with Akka - could not find implicit value for parameter timeout: akka.util.Timeout 玩! 找不到参数reducer的隐式值 - Play! could not find implicit value for parameter reducer 找不到参数超时的隐式值:akka.util.Timeout - could not find implicit value for parameter timeout: akka.util.Timeout Scala,Play Framework Slick问题 - 无法找到参数rconv的隐含值 - Scala, Play Framework Slick issue - could not find implicit value for parameter rconv 找不到参数c的隐式值:anorm.Column [Float] Play Framework Scala - could not find implicit value for parameter c: anorm.Column[Float] Play Framework Scala play-json-找不到参数um的隐式值 - play-json - Could not find implicit value for parameter um 这作为隐式参数-找不到参数的隐式值 - this as implicit parameter - could not find implicit value for parameter 无法找到参数的隐含值 - Could not find implicit value for parameter 播放2.5:找不到参数消息的隐式值:play.api.i18n.Messages - Play 2.5: could not find implicit value for parameter messages: play.api.i18n.Messages Play 2.4:Form:找不到参数消息的隐含值:play.api.i18n.Messages - Play 2.4: Form: could not find implicit value for parameter messages: play.api.i18n.Messages
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM