Skip to content
This repository was archived by the owner on Dec 2, 2024. It is now read-only.

PLT-1034 Fixed SealedBidAuction failing quickcheck test case.#767

Merged
koslambrou merged 1 commit intomainfrom
PLT-1034-gth-759-fix-sealedbidauction-quickcheck-contractmodel-failing-test-case
Oct 20, 2022
Merged

PLT-1034 Fixed SealedBidAuction failing quickcheck test case.#767
koslambrou merged 1 commit intomainfrom
PLT-1034-gth-759-fix-sealedbidauction-quickcheck-contractmodel-failing-test-case

Conversation

@koslambrou
Copy link
Contributor

@koslambrou koslambrou commented Oct 19, 2022

Should fix #759

  • Fixed the SealedBidAuction failing quickcheck test case

  • Documented the issue concerning validity intervals and outlined the issue with cardano-ledger.

  • Added a global limit of 100 for number of generated test cases for quickcheck. This can be override on individual property tests using 'withMaxSuccess'.

  • Added a test case for Crowdfunding to verify that we can't make a contribution if the deadline is elapsed (unrelated to the fix, but I encountered the lack of test for this test case when looking at the validity intervals)

Pre-submit checklist:

  • Branch
    • Tests are provided (if possible)
    • Commit sequence broadly makes sense
    • Key commits have useful messages
    • Formatting, PNG optimization, etc. are updated
  • PR
    • Self-reviewed the diff
    • Useful pull request description
    • Reference the ADR in the PR and reference the PR in the ADR (if revelant)
    • Reviewer requested

@koslambrou koslambrou requested review from a user and berewt October 19, 2022 20:46
Copy link
Contributor

@berewt berewt left a comment

Choose a reason for hiding this comment

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

Yes!

* Fixed the SealedBidAuction failing quickcheck test case

* Documented the issue concerning validity intervals and outlined the
  issue with cardano-ledger.

* Added a global limit of 100 for number of generated test cases for
  quickcheck. This can be override on individual property tests using
  'withMaxSuccess'.

* Added a test case for Crowdfunding to verify that we can't make a
  contribution if the deadline is elapsed.
@koslambrou koslambrou force-pushed the PLT-1034-gth-759-fix-sealedbidauction-quickcheck-contractmodel-failing-test-case branch from 74485f7 to 6e7bfb4 Compare October 20, 2022 10:09
@koslambrou koslambrou merged commit 4da78bc into main Oct 20, 2022
@koslambrou koslambrou deleted the PLT-1034-gth-759-fix-sealedbidauction-quickcheck-contractmodel-failing-test-case branch October 20, 2022 13:54
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Fix SealedBidAuction QuickCheck ContractModel failing test case

2 participants