Closed mennopruijssers closed 8 years ago
Same question as in Go version. How are we going to test this?
@Motiejus currently main.js is currently not tested in an automated way: it's just a simple "example"-app. If we want to test this, I would vote for moving it to it's own module or repo, let it depend on uber/ringpop-node#master and add tests there for behaviour like this (and do the same for go's counterpart). I don't think that it should be part of this PR but could be a "pre-requirement" if we decide to move forward with this approach.
I think we can make at least a unit test for the matching part; shouldn't be too hard?
I still think overloading a single configuration key for two different values doesn't seem right; do you think otherwise (we can have a talk, maybe I`m misunderstanding something)
LGTM!
After small fix in option description and comment about using _ephemeralSocket --- lgtm.
In preparation for automated performance and failure testing we want to be able to emit stats to a file or a network address from testpop. This commit adds a new flag to
main.js
to control if and where stats should be emitted; if the flag is omitted, no stats are emitted.