【发布时间】:2017-10-16 09:13:42
【问题描述】:
我正在关注this tutorial ,与教程和他们的 GH 存储库相比,我已经对代码进行了两次和三次检查,但我无法弄清楚为什么在运行 mix test 时会出现此错误
我对 Elixir 很陌生,所以我还不是很擅长调试,所以如果这超级简单,请原谅
还有我的测试文件
defmodule GameOfLife.BoardServerTest do
use ExUnit.Case
doctest GameOfLife.BoardServer
end
我得到的错误是:
test/board_server_test.exs:3
** (exit) exited in: GenServer.call({:global, GameOfLife.BoardServer}, {:start_game, 1000}, 5000)
** (EXIT) no process: the process is not alive or there's no process currently associated with the given name, possibly because its application isn't started
stacktrace:
(elixir) lib/gen_server.ex:729: GenServer.call/3
(for doctest at) lib/game_of_life/board_server.ex:121: (test)
提前谢谢你
【问题讨论】:
-
您是否在
mix.exs的application/0中的mod键中输入了正确的模块名称? -
换句话说,你应该发布你的
mix.exs文件。
标签: erlang elixir elixir-mix gen-server