Skip to content

Commit

Permalink
Test fix
Browse files Browse the repository at this point in the history
  • Loading branch information
jazz-soft committed Sep 24, 2019
1 parent 4dddfb6 commit 8c46f71
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions test/tests.js
Original file line number Diff line number Diff line change
Expand Up @@ -511,6 +511,7 @@ module.exports = function(JZZ, PARAMS, DRIVER) {
}, function() {
assert.equal(p.connection, 'closed');
src.disconnect();
engine.refresh();
done();
});
}
Expand All @@ -531,6 +532,7 @@ module.exports = function(JZZ, PARAMS, DRIVER) {
assert.equal(e.port.connection, 'closed');
midi.onstatechange = null;
src.disconnect();
engine.refresh();
done();
};
setTimeout(function() { src.connect(); }, 10);
Expand Down Expand Up @@ -655,6 +657,7 @@ module.exports = function(JZZ, PARAMS, DRIVER) {
}, function() {
assert.equal(p.connection, 'closed');
dst.disconnect();
engine.refresh();
done();
});
}
Expand All @@ -675,6 +678,7 @@ module.exports = function(JZZ, PARAMS, DRIVER) {
assert.equal(e.port.connection, 'closed');
midi.onstatechange = null;
dst.disconnect();
engine.refresh();
done();
};
setTimeout(function() { dst.connect(); }, 10);
Expand Down

0 comments on commit 8c46f71

Please sign in to comment.