Add command test for no command as error

This commit is contained in:
Marc Di Luzio 2020-07-23 18:41:12 +01:00
parent 8cc3b9155e
commit 41cd93e986

View file

@ -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)
}