Skip to content

smite-scenarios: stop injecting negotiation state - #292

Merged
morehouse merged 3 commits into
masterfrom
stop_injecting_negotiations
Oct 20, 2026
Merged

morehouse merged 3 commits into
masterfrom
stop_injecting_negotiations

Conversation

@morehouse

Copy link
Copy Markdown
Collaborator

Convert all but two tests so that they actually do the open_channel/accept_channel negotiation rather than injecting the negotation state into the executor. This approach is easier to understand because the reader doesn't have to figure out what state was injected and how it affects the rest of the test. The test behavior is apparent from the executed program and queued target responses.

The remaining two tests still use injected negotiations because otherwise the AcceptChannelOracle prevents them from hitting the expected error. The next PR will remove those tests entirely.

Depends on #291.

@morehouse
morehouse added this pull request to stack #289 October 16, 2026 03:37
@morehouse
morehouse force-pushed the stop_injecting_negotiations branch from 7fc3334 to 85096cf Compare October 16, 2026 21:06
Base automatically changed from simplify_key_reuse_tests to master October 16, 2026 21:31
Have harness do the actual open_channel/accept_channel negotiation
rather than injecting the negotiation state into the executor.

The push and overflow tests keep their injected negotiations since
AcceptChannelOracle would reject them before the expected errors could
occur.
Do the actual open_channel/accept_channel negotiation rather than
injecting the negotiation state into the executor.
@morehouse
morehouse force-pushed the stop_injecting_negotiations branch from 85096cf to 1200c62 Compare October 16, 2026 21:59

@NishantBansal2003 NishantBansal2003 left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

LGTM!

@morehouse
morehouse merged commit ea7314b into master Oct 20, 2026
5 checks passed
@morehouse
morehouse deleted the stop_injecting_negotiations branch October 20, 2026 23:02
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