diff options
Diffstat (limited to 'go/game/playerControl_test.go')
| -rw-r--r-- | go/game/playerControl_test.go | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/go/game/playerControl_test.go b/go/game/playerControl_test.go index 0182e30b..2727df0b 100644 --- a/go/game/playerControl_test.go +++ b/go/game/playerControl_test.go @@ -7,9 +7,10 @@ import ( type MockPlayerControl struct { p *Player sentNotifications []PlayerNotification + actionToSend Action } -func newMockPlayerControl(p *Player) PlayerControl { +func newMockPlayerControl(p *Player) *MockPlayerControl { return &MockPlayerControl{p: p} } @@ -25,7 +26,7 @@ func (ctrl *MockPlayerControl) SendNotification(n PlayerNotification) error { } func (ctrl *MockPlayerControl) RecvAction() (Action, error) { - return nil, nil + return ctrl.actionToSend, nil } func (ctrl *MockPlayerControl) SendAction(Action) error { return nil } |
