]> git.cworth.org Git - lmno-server/commit
Add failing test for list of judging players when judging phase begins
authorCarl Worth <cworth@cworth.org>
Sat, 27 Jun 2020 14:39:53 +0000 (07:39 -0700)
committerCarl Worth <cworth@cworth.org>
Sat, 27 Jun 2020 14:40:43 +0000 (07:40 -0700)
commit6242e4b208d33d6dfe887ab19ace65d9060c06be
tree683f8cf32f3ee69781a2d2ee999458f8da278ec1
parent422dafa274b3e9858621f1973c98e313fc0213c8
Add failing test for list of judging players when judging phase begins

In the answering phase, the list of answering players (the ones we are
waiting for) initially starts out as empty and then gets populated
only as people start typing (that is, submit a post to the
"/answering" endpoint).

That's appropriate since we don't know who among the players
registered are really actively "playing".

But that's not the right logic for the judging phase. The judging
phase starts immediately after the answering phase has completed, so
at that point we know the precise list of active players and we should
display all of them in the "waiting" list until each has submitted.

This commit adds a failing test case demonstrating that this list is
empty when the judging phase starts, but it should include the names
of each player that submitted an answer, (but not the name of a player
that is registered but did not submit).
test