【问题标题】:Play Framework 2.2 - could not find implicit value for parameter timeoutPlay Framework 2.2 - 找不到参数超时的隐式值
【发布时间】:2013-09-21 16:50:47
【问题描述】:

我正在使用以下代码测试调用:

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

status 的调用会产生以下编译错误: could not find implicit value for parameter timeout: akka.util.Timeout

【问题讨论】:

    标签: scala playframework-2.2


    【解决方案1】:

    这是因为Helpers 函数已更改。现在可以为每个函数更改超时。

    我需要添加以下导入:

    import play.api.test.Helpers.defaultAwaitTimeout
    

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 2016-09-19
      • 1970-01-01
      • 2013-02-04
      • 2016-06-21
      • 2017-02-02
      • 2016-01-17
      • 2011-10-17
      相关资源
      最近更新 更多