mirror of
https://github.com/Team254/cheesy-arena-lite.git
synced 2026-03-09 13:46:44 -04:00
Add framework for playing game sounds at arbitrary times during the match.
This commit is contained in:
@@ -56,6 +56,7 @@ func TestAudienceDisplayWebsocket(t *testing.T) {
|
||||
web.arena.AllianceStations["B3"].Bypass = true
|
||||
web.arena.StartMatch()
|
||||
web.arena.Update()
|
||||
web.arena.Update()
|
||||
messages := readWebsocketMultiple(t, ws, 3)
|
||||
screen, ok := messages["audienceDisplayMode"]
|
||||
if assert.True(t, ok) {
|
||||
@@ -63,7 +64,7 @@ func TestAudienceDisplayWebsocket(t *testing.T) {
|
||||
}
|
||||
sound, ok := messages["playSound"]
|
||||
if assert.True(t, ok) {
|
||||
assert.Equal(t, "match-warmup", sound)
|
||||
assert.Equal(t, "match-start", sound)
|
||||
}
|
||||
_, ok = messages["matchTime"]
|
||||
assert.True(t, ok)
|
||||
|
||||
Reference in New Issue
Block a user