mirror of
https://github.com/danbee/chess
synced 2025-03-04 08:39:06 +00:00
Address genserver failures in tests
This commit is contained in:
parent
43d59cc24f
commit
278025b098
@ -75,6 +75,8 @@ defmodule ChessWeb.BoardLive do
|
||||
_ ->
|
||||
handle_move(socket, file, rank)
|
||||
end
|
||||
else
|
||||
[]
|
||||
end
|
||||
|
||||
assign(socket, assigns)
|
||||
@ -121,6 +123,9 @@ defmodule ChessWeb.BoardLive do
|
||||
{:board, game.board},
|
||||
{:game, game}
|
||||
]
|
||||
|
||||
{:error, _, _, _} ->
|
||||
[]
|
||||
end
|
||||
else
|
||||
[{:selected, nil}, {:available, []}]
|
||||
|
||||
Loading…
Reference in New Issue
Block a user