intel / node-realsense

MIT License
24 stars 21 forks source link

How to get an "errored" state instance for testing? #122

Open haoyunfeix opened 7 years ago

haoyunfeix commented 7 years ago

I need a condition instance.state === 'errored' for testing.

And I tried unplug-in the camera when running or start up camera twice in the same time, but they doesn't work. Is there a way to touch the goal?

kenny-y: I guess by pulling out the camera when it's running? All add-ons are currently running on the happy path. I believe we need a generic mechanism and then apply it to all 3 add-ons to deal with this.

tingshao: I once met with an device start error, exception is thrown from native side when two programs running the addon are started. This may be one case.