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

test: add coverage for protective auction ACs #11496

Merged
merged 4 commits into from
Jul 24, 2024
Merged

test: add coverage for protective auction ACs #11496

merged 4 commits into from
Jul 24, 2024

Conversation

EVODelavega
Copy link
Contributor

Also included some more unit testing to processor package, changed the log.Fatal call in the protocol upgrade flow to a log.Panic to be able to recover in a unit test, to check that code-path.

if m.mkt.TradingMode == types.MarketTradingModeSuspendedViaGovernance {
return
}

m.mkt.State = types.MarketStateSuspended
m.mkt.TradingMode = types.MarketTradingModelLongBlockAuction
Copy link
Contributor

Choose a reason for hiding this comment

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

I think this is still wrong you know? or at least out of place. If we're not in an auction then it's correct. But if we are in an auction I'm not sure we should do either of these.

Signed-off-by: Elias Van Ootegem <[email protected]>
Signed-off-by: Elias Van Ootegem <[email protected]>
@jeremyletang jeremyletang merged commit 033b6c0 into develop Jul 24, 2024
15 checks passed
@jeremyletang jeremyletang deleted the prac-ACs branch July 24, 2024 17:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

3 participants