Skip to content

Commit c0f5404

Browse files
committed
Fixed LinkedControllerTest.
1 parent 1d673f6 commit c0f5404

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

controller/src/test/java/eu/rekawek/coffeegb/controller/link/LinkedControllerTest.kt

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ class LinkedControllerTest {
2727
val randomJoypad = RandomJoypad(eventBus)
2828
eventBus.post(LoadRomEvent(ROM))
2929
eventBus.post(
30-
PeerLoadedGameEvent(ROM_BYTES, null, GameboyType.DMG, Gameboy.BootstrapMode.SKIP, 0)
30+
PeerLoadedGameEvent(ROM_BYTES, null, null, GameboyType.DMG, Gameboy.BootstrapMode.SKIP, 0)
3131
)
3232
repeat(100) {
3333
sut.runFrame()
@@ -68,7 +68,7 @@ class LinkedControllerTest {
6868
val randomJoypad = RandomJoypad(eventBus1)
6969
eventBus1.post(LoadRomEvent(ROM))
7070
eventBus1.post(
71-
PeerLoadedGameEvent(ROM_BYTES, null, GameboyType.DMG, Gameboy.BootstrapMode.SKIP, 0)
71+
PeerLoadedGameEvent(ROM_BYTES, null, null, GameboyType.DMG, Gameboy.BootstrapMode.SKIP, 0)
7272
)
7373

7474
val eventBus2 = EventBusImpl()
@@ -77,7 +77,7 @@ class LinkedControllerTest {
7777
sut2.timingTicker.disabled = true
7878
eventBus2.post(LoadRomEvent(ROM))
7979
eventBus2.post(
80-
PeerLoadedGameEvent(ROM_BYTES, null, GameboyType.DMG, Gameboy.BootstrapMode.SKIP, 0)
80+
PeerLoadedGameEvent(ROM_BYTES, null, null, GameboyType.DMG, Gameboy.BootstrapMode.SKIP, 0)
8181
)
8282
sut2.stateHistory.debugEventBus =
8383
EventBusImpl().also { eb ->
@@ -117,7 +117,7 @@ class LinkedControllerTest {
117117
val randomJoypad1 = RandomJoypad(eventBus1)
118118
eventBus1.post(LoadRomEvent(ROM))
119119
eventBus1.post(
120-
PeerLoadedGameEvent(ROM_BYTES, null, GameboyType.DMG, Gameboy.BootstrapMode.SKIP, 0)
120+
PeerLoadedGameEvent(ROM_BYTES, null, null, GameboyType.DMG, Gameboy.BootstrapMode.SKIP, 0)
121121
)
122122

123123
val eventBus2 = EventBusImpl()
@@ -127,7 +127,7 @@ class LinkedControllerTest {
127127
val randomJoypad2 = RandomJoypad(eventBus2)
128128
eventBus2.post(LoadRomEvent(ROM))
129129
eventBus2.post(
130-
PeerLoadedGameEvent(ROM_BYTES, null, GameboyType.DMG, Gameboy.BootstrapMode.SKIP, 0)
130+
PeerLoadedGameEvent(ROM_BYTES, null, null, GameboyType.DMG, Gameboy.BootstrapMode.SKIP, 0)
131131
)
132132
sut2.stateHistory.debugEventBus =
133133
EventBusImpl().also { eb ->

0 commit comments

Comments
 (0)