Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Loading…

Random port connection, makes really hard for testing with VCR, should this be expose in config? #111

Closed
ygt-mb opened this Issue · 1 comment

2 participants

@ygt-mb

If possible I ask to expose to config a port setup on which poltergeist connects to phantomjs.

The problem:

In class Server in initialize we do:

@port    = Util.find_available_port

This will create a server on random port and vcr will catch this as unspecified connection, fer ex.

 An HTTP request has been made that VCR does not know how to handle:
 GET http://127.0.0.1:59062/__identify__ 

This makes really hard to test api called via java script using vcr as I can't specify a rule to remove this request (I don't want to skip all localhost requests)

Also specifying in options address and port does not help.

 --proxy=address:port specifies the proxy server to use (e.g. --proxy=192.168.1.42:8080).

If there is a quick workaround please advise.

Many Thanks.

Marek

@jonleighton
Owner

Yeah, we should have a :port configuration value, set it to some default value, and get rid of the random port thing.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.