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)
|
handle_move(socket, file, rank)
|
||||||
end
|
end
|
||||||
|
else
|
||||||
|
[]
|
||||||
end
|
end
|
||||||
|
|
||||||
assign(socket, assigns)
|
assign(socket, assigns)
|
||||||
@ -121,6 +123,9 @@ defmodule ChessWeb.BoardLive do
|
|||||||
{:board, game.board},
|
{:board, game.board},
|
||||||
{:game, game}
|
{:game, game}
|
||||||
]
|
]
|
||||||
|
|
||||||
|
{:error, _, _, _} ->
|
||||||
|
[]
|
||||||
end
|
end
|
||||||
else
|
else
|
||||||
[{:selected, nil}, {:available, []}]
|
[{:selected, nil}, {:available, []}]
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user