]> git.cworth.org Git - empires-server/commit
test: Add failing test case for unnecessary delay for end-judging voting
authorCarl Worth <cworth@cworth.org>
Sat, 27 Jun 2020 14:27:41 +0000 (07:27 -0700)
committerCarl Worth <cworth@cworth.org>
Sat, 27 Jun 2020 14:28:44 +0000 (07:28 -0700)
commitc343c36604caa05d96082ec07922914fb9bf2636
tree9c1330834a64548d2494c067ea563eb9090942a3
parenta97fc77ab9bf93e23a5db127f4aaddb046230958
test: Add failing test case for unnecessary delay for end-judging voting

If all of the players that submitted answers have also all completed
judging, then there's nobody left to wait for and it's pointless to
wait for the idle timer to fire and to force everyone to vote to end
judging. Yet, that's what the implementation currently does.

This commit adds a new test case, which fails, showing the point at
which the game should automatically advance to scoring, (once every
player who submitted an answer has also voted).
test