How can I fix the missing implicit value for parameter ta: TildeArrow in a test spec

后端 未结 7 976
臣服心动
臣服心动 2021-01-01 15:14

I\'m working on a simple test spec using spray and I can\'t get it to compile correctly, don\'t know if I\'m doing anything wrong. My version of scala is 2.9.3 and spray 1.0

7条回答
  •  死守一世寂寞
    2021-01-01 16:00

    In my case, the not found implicit error appeared when in my TestCase I also imported import monix.execution.Scheduler.Implicits.global (which is probably having some sort of ExecutionContext).

    I fixed it adding the monix scheduler import just in the method where I needed it, not on the top imports.

提交回复
热议问题