Skip to content

Conversation

bcoe
Copy link
Contributor

@bcoe bcoe commented Sep 4, 2015

slight modification to #815

  • we now spawn redis on the default port so that we don't need to run a second copy of redis for tests that exercise node_redis' default behavior.
  • we stop the tests and warn the user if they already have a copy of redis up and running on :6379.

if (options.retry_max_delay !== undefined && !isNaN(options.retry_max_delay) && options.retry_max_delay > 0) {
this.retry_max_delay = options.retry_max_delay;
if (options.retry_max_delay && options.retry_max_delay > 0) {
this.retry_max_delay = +options.retry_max_delay;
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@BridgeAR this change concerns me a bit, why the pre-increment? and should we still confirm that options.retry_max_delay is a #?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The + is only a type coercion to number :)
a > 0 is also doing a type coercion, so it'll be the same as it was before

bcoe added a commit that referenced this pull request Sep 12, 2015
minor tweaks to how we spawn tests in #815
@bcoe bcoe merged commit a31a4e2 into master Sep 12, 2015
@bcoe bcoe deleted the 815-tweaks branch September 12, 2015 04:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants