Add command test for no command as error
This commit is contained in:
parent
8cc3b9155e
commit
41cd93e986
1 changed files with 6 additions and 1 deletions
|
@ -132,5 +132,10 @@ func TestCommand_Broadcast(t *testing.T) {
|
|||
}
|
||||
|
||||
func TestCommand_Invalid(t *testing.T) {
|
||||
// TODO: Test an invalid command
|
||||
w := NewWorld(8)
|
||||
name, err := w.SpawnRover()
|
||||
assert.NoError(t, err)
|
||||
|
||||
err = w.Enqueue(name, &roveapi.Command{Command: roveapi.CommandType_none})
|
||||
assert.Error(t, err)
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue