Skip to content

Commit 7d4d3cb

Browse files
committed
[bugfix] Fix unit tests (missing nextCommand)
1 parent a6a4ef9 commit 7d4d3cb

File tree

2 files changed

+24
-2
lines changed

2 files changed

+24
-2
lines changed

internal/app/controller/testdata/transition_commands.json

Lines changed: 17 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@
44
"stage": "First Half",
55
"command": "halt",
66
"commandForTeam": null,
7+
"nextCommand": "",
8+
"nextCommandFor": "",
79
"gameEvent": {
810
"type": "",
911
"forTeam": "",
@@ -49,6 +51,8 @@
4951
"stage": "First Half",
5052
"command": "stop",
5153
"commandForTeam": null,
54+
"nextCommand": "",
55+
"nextCommandFor": "",
5256
"gameEvent": {
5357
"type": "",
5458
"forTeam": "",
@@ -95,6 +99,8 @@
9599
"stage": "First Half",
96100
"command": "kickoff",
97101
"commandForTeam": "Yellow",
102+
"nextCommand": "normalStart",
103+
"nextCommandFor": "",
98104
"gameEvent": {
99105
"type": "",
100106
"forTeam": "",
@@ -140,6 +146,8 @@
140146
"stage": "First Half",
141147
"command": "normalStart",
142148
"commandForTeam": null,
149+
"nextCommand": "",
150+
"nextCommandFor": "",
143151
"gameEvent": {
144152
"type": "",
145153
"forTeam": "",
@@ -185,6 +193,8 @@
185193
"stage": "First Half",
186194
"command": "stop",
187195
"commandForTeam": null,
196+
"nextCommand": "",
197+
"nextCommandFor": "",
188198
"gameEvent": {
189199
"type": "",
190200
"forTeam": "",
@@ -231,6 +241,8 @@
231241
"stage": "First Half",
232242
"command": "direct",
233243
"commandForTeam": "Blue",
244+
"nextCommand": "",
245+
"nextCommandFor": "",
234246
"gameEvent": {
235247
"type": "",
236248
"forTeam": "",
@@ -276,6 +288,8 @@
276288
"stage": "First Half",
277289
"command": "stop",
278290
"commandForTeam": null,
291+
"nextCommand": "",
292+
"nextCommandFor": "",
279293
"gameEvent": {
280294
"type": "",
281295
"forTeam": "",
@@ -322,6 +336,8 @@
322336
"stage": "First Half",
323337
"command": "indirect",
324338
"commandForTeam": "Yellow",
339+
"nextCommand": "",
340+
"nextCommandFor": "",
325341
"gameEvent": {
326342
"type": "",
327343
"forTeam": "",
@@ -357,4 +373,4 @@
357373
}
358374
}
359375
}
360-
]
376+
]

internal/app/controller/testdata/transition_penalty.json

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@
44
"stage": "First Half",
55
"command": "stop",
66
"commandForTeam": null,
7+
"nextCommand": "",
8+
"nextCommandFor": "",
79
"gameEvent": {
810
"type": "",
911
"forTeam": "",
@@ -50,6 +52,8 @@
5052
"stage": "First Half",
5153
"command": "penalty",
5254
"commandForTeam": "Yellow",
55+
"nextCommand": "normalStart",
56+
"nextCommandFor": "",
5357
"gameEvent": {
5458
"type": "",
5559
"forTeam": "",
@@ -95,6 +99,8 @@
9599
"stage": "First Half",
96100
"command": "normalStart",
97101
"commandForTeam": null,
102+
"nextCommand": "",
103+
"nextCommandFor": "",
98104
"gameEvent": {
99105
"type": "",
100106
"forTeam": "",
@@ -130,4 +136,4 @@
130136
}
131137
}
132138
}
133-
]
139+
]

0 commit comments

Comments
 (0)