Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Execute the unload event handler at the end of each startup test #15

Closed
AlCalzone opened this issue Mar 11, 2019 · 2 comments
Closed

Execute the unload event handler at the end of each startup test #15

AlCalzone opened this issue Mar 11, 2019 · 2 comments
Assignees

Comments

@AlCalzone
Copy link
Collaborator

https://travis-ci.org/Apollon77/ioBroker.contactid/jobs/504447879

@AlCalzone AlCalzone self-assigned this Mar 11, 2019
@Apollon77
Copy link
Collaborator

@paveltsytovich
Copy link

I have same problem with SerialPort. I create fake serial port with following code
FakeSerialPort.Binding.createPort('/dev/ttyUSB0',{ echo: false, record: true,autoOpen: false });
and moking real serialport :
additionalMockedModules: { 'serialport': FakeSerialPort }

When I run test, I receive message Uncaught Error: Port is locked cannot open because FakeSerialPort in use when I first run, but can`t use again in second run (in compact mode).
I need handler before create my adapter for each time (normal and compact mode). This handler I will use for create fake serial port

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants