Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: clash between daemon --api flag and cli tests #4241

Merged
merged 1 commit into from
Oct 8, 2020

Conversation

dirkmc
Copy link
Contributor

@dirkmc dirkmc commented Oct 8, 2020

Currently the payment channel CLI tests use a --api flag to indicate which server to create a client API against (payment channel creator or payment channel receiver).

lotus daemon also takes a --api flag that indicates the port on which to start.

This PR fixes the clash by changing the flag that the tests use to --api-url

It also makes it possible to specify the api using a regular url (instead of a multiaddress):
FULLNODE_API_INFO=<token>:/ip4/127.0.0.1/tcp/1234 go run ./cmd/lotus wallet balance t01234
FULLNODE_API_INFO="<token>:ws://127.0.0.1:1234" go run ./cmd/lotus wallet balance t01234

This can be useful for example if a websocket url has a path (currently not possible to represent with a multiaddress).

@magik6k magik6k merged commit d26ece1 into master Oct 8, 2020
@magik6k magik6k deleted the fix/daemon-flag-clash branch October 8, 2020 16:30
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.

None yet

2 participants