【发布时间】:2016-11-22 15:29:49
【问题描述】:
例如,我使用HTTPotion。
在mix.exs中是这样列出的:
def application do
[ applications: [:httpotion]
end
我需要在 test_helper 或 setup 宏中提供 HTTPotion.start() 吗?
有时我的测试会失败,因为 HTTPotion 没有启动,所以我在 helper.xml 中添加了这一行。但是,过了一段时间它可能会再次失败,所以我需要删除它,编译并再次添加它,再次编译并再次运行。
我不明白问题出在这个领域还是其他领域。
【问题讨论】:
标签: elixir erlang-otp