mirror of
https://github.com/siemens-mobile-hacks/node-serialport-bindings-cpp.git
synced 2026-11-26 02:47:17 +00:00
Fix error event test to remove duplicate done calls
This commit is contained in:
parent
a7c04bf43a
commit
34bf27ef61
1 changed files with 1 additions and 0 deletions
|
|
@ -25,6 +25,7 @@ describe ('error handling', function() {
|
|||
|
||||
serialPort.on('error', function(err) {
|
||||
chai.assert.isDefined(err);
|
||||
serialPort.removeAllListeners('error');
|
||||
done();
|
||||
});
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue