mirror of
https://github.com/Team254/cheesy-arena-lite.git
synced 2026-03-09 13:46:44 -04:00
Remove pre-match scoring enforcement since it's not needed for 2020.
This commit is contained in:
@@ -58,7 +58,6 @@ func TestAllianceStationDisplayWebsocket(t *testing.T) {
|
||||
web.arena.AllianceStations["B1"].Bypass = true
|
||||
web.arena.AllianceStations["B2"].Bypass = true
|
||||
web.arena.AllianceStations["B3"].Bypass = true
|
||||
web.arena.BypassPreMatchScore = true
|
||||
web.arena.StartMatch()
|
||||
web.arena.Update()
|
||||
messages := readWebsocketMultiple(t, ws, 3)
|
||||
|
||||
@@ -45,7 +45,6 @@ func TestAnnouncerDisplayWebsocket(t *testing.T) {
|
||||
web.arena.AllianceStations["B1"].Bypass = true
|
||||
web.arena.AllianceStations["B2"].Bypass = true
|
||||
web.arena.AllianceStations["B3"].Bypass = true
|
||||
web.arena.BypassPreMatchScore = true
|
||||
web.arena.StartMatch()
|
||||
web.arena.Update()
|
||||
messages := readWebsocketMultiple(t, ws, 2)
|
||||
|
||||
@@ -55,7 +55,6 @@ func TestAudienceDisplayWebsocket(t *testing.T) {
|
||||
web.arena.AllianceStations["B1"].Bypass = true
|
||||
web.arena.AllianceStations["B2"].Bypass = true
|
||||
web.arena.AllianceStations["B3"].Bypass = true
|
||||
web.arena.BypassPreMatchScore = true
|
||||
web.arena.StartMatch()
|
||||
web.arena.Update()
|
||||
web.arena.Update()
|
||||
|
||||
@@ -207,8 +207,6 @@ func (web *Web) matchPlayWebsocketHandler(w http.ResponseWriter, r *http.Request
|
||||
continue
|
||||
}
|
||||
web.arena.AllianceStations[station].Bypass = !web.arena.AllianceStations[station].Bypass
|
||||
case "toggleBypassPreMatchScore":
|
||||
web.arena.BypassPreMatchScore = !web.arena.BypassPreMatchScore
|
||||
case "startMatch":
|
||||
args := struct {
|
||||
MuteMatchSounds bool
|
||||
|
||||
@@ -296,7 +296,6 @@ func TestMatchPlayWebsocketCommands(t *testing.T) {
|
||||
web.arena.AllianceStations["B1"].Bypass = true
|
||||
web.arena.AllianceStations["B2"].Bypass = true
|
||||
web.arena.AllianceStations["B3"].Bypass = true
|
||||
web.arena.BypassPreMatchScore = true
|
||||
ws.Write("startMatch", nil)
|
||||
readWebsocketType(t, ws, "arenaStatus")
|
||||
assert.Equal(t, field.StartMatch, web.arena.MatchState)
|
||||
@@ -356,7 +355,6 @@ func TestMatchPlayWebsocketNotifications(t *testing.T) {
|
||||
web.arena.AllianceStations["B1"].Bypass = true
|
||||
web.arena.AllianceStations["B2"].Bypass = true
|
||||
web.arena.AllianceStations["B3"].Bypass = true
|
||||
web.arena.BypassPreMatchScore = true
|
||||
assert.Nil(t, web.arena.StartMatch())
|
||||
web.arena.Update()
|
||||
messages := readWebsocketMultiple(t, ws, 4)
|
||||
|
||||
Reference in New Issue
Block a user