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

Improve tests to expose server mode of SC FSM #3340

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

velzevur
Copy link
Member

Closes #3069

Ulf's comment was right and this indeed is already present. I added some tests to validate it.

This PR had been produced with the support of the Aeternity Foundation. You can read about this in the forum.

ct:log("Config1 = ~p", [Config1]),
ReestablishOptions = sc_ws_leave_(Config1),
Config2 = reconnect_client_(ReestablishOptions, initiator,
[{reconnect_scenario, reestablish} | Config1]),
Copy link
Contributor

Choose a reason for hiding this comment

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

Odd formatting compared to other places in the codebase.

Suggested change
[{reconnect_scenario, reestablish} | Config1]),
[{reconnect_scenario, reestablish}|Config1]),

Opts =
lists:foldl(
fun({keep_running, Bool}, Accum) when is_boolean(Bool) ->
Accum#{keep_running => true};
Copy link
Contributor

Choose a reason for hiding this comment

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

Might be confusing for future users who might call custom_responder_opts([{keep_running, false}])

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.

SC: Feature addition, allow merchant to subscribe to incoming client requests
3 participants