From 278025b0989d3eff3966e55d8758d8b81c8abe45 Mon Sep 17 00:00:00 2001 From: Dan Barber Date: Tue, 21 Nov 2023 13:15:06 -0600 Subject: [PATCH] Address genserver failures in tests --- lib/chess_web/views/live/board_live.ex | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/lib/chess_web/views/live/board_live.ex b/lib/chess_web/views/live/board_live.ex index f6943ef..33867b5 100644 --- a/lib/chess_web/views/live/board_live.ex +++ b/lib/chess_web/views/live/board_live.ex @@ -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, []}]