Closed baffo32 closed 7 years ago
Good stuff!! Very excited to get this on the books! Could you also please update the changeling.md
for this feature and we gotta add #98 too!!
@@ 1.4.0 #101 diff @@
==========================================
Files 4 4
Lines 2180 2237 +57
Methods 126 128 +2
Messages 0 0
Branches 475 494 +19
==========================================
+ Hits 2039 2095 +56
- Misses 141 142 +1
Partials 0 0
Powered by Codecov. Last update 7d78748...83ac939
grumph, grumph, coverage ...
Ready for merge.
Ok will review shortly.
Need to add tests to make sure setting a simulator option from the top most options actually changes that in the simulator.
Please add tests here for bufferSize
, fragmentation
, and latencyTimer
https://github.com/OpenBCI/OpenBCI_NodeJS/blob/master/test/openBCIBoard-test.js#L398-L410
test failure looks like a spurious issue revealed by fragmentation simulation
test failure looks like a spurious issue revealed by fragmentation simulation
Really?! It seemed like some weird linux thing, great news to hear though.
@aj-ptw, I think I've implemented your requested changes. Also fixed spurious issue.
whoops, need to give random
coverage now
@baffo32 haha i was about to merge it but then i saw the code coverage report
done!
Great thanks! @baffo32
This adjusts the simulator to behave a little more like reality, such that packets are split into pieces when received.
I have verified that all of the failing tests are due to issues that this additional simulation reveals, and not bugs in it. They should be fixed either in the tests or in the main library.