Commit Graph

14 Commits

Author SHA1 Message Date
Daniel Sanchez caea1b4116
Unhappy path base test assertions (#14)
* Unhappy path tests replacing timeout msgs with NewView. Also revising the conditions to enter into the unhappy path.

* Unhappy path tests assertions.

* Fix assertions on test

* Cleanup

---------

Co-authored-by: mjalalzai <33738574+MForensic@users.noreply.github.com>
2023-04-11 11:57:31 +02:00
danielsanchezq 5ad1d7b90f Fix happy math mockoverlay missing methods 2023-04-10 18:14:38 +02:00
danielsanchezq 0922aec404 Extract MockCarnot in happy path tests 2023-04-10 10:50:40 +02:00
Daniel Sanchez d8d22e7219
Overlay based happy tests (#11)
* Cleanup

* Leaf committee member vote.

* Leaf committee member vote, test.

* Leaf committee member vote, test.

* Description

* Description

* Description-refactoring

* Cleanup

* Fix leaf votes test

* Clean overlay

* Test single committee advances

* Remove unhappy path test file

* Update carnot description

* Refactor local_timeout for NewView

* Fix unhappy path conditions and added broadcasting

* Unhappy path tests description

* Commit all grandparents of a block from latest_committed view

* Cleanup docs

* Add unhappy path test vector

* Remove block content

---------

Co-authored-by: mjalalzai <33738574+MForensic@users.noreply.github.com>
2023-04-10 10:28:48 +02:00
danielsanchezq f92bb0bf15 Fix tests with block content and comments 2023-04-03 13:49:54 +02:00
danielsanchezq 00b650255c Stylish, adjustments and fixes 2023-04-03 11:02:58 +02:00
mjalalzai 523ec81577 Received Votes tests 2023-04-01 15:25:45 -07:00
mjalalzai f55d897104 Get max timeout by highQC 2023-04-01 13:26:51 -07:00
mjalalzai 7d0e84fd32 Vote tests 2023-04-01 00:35:13 -07:00
mjalalzai f596893cd3 Tests for updating latest_committed_view and high_qc. 2023-03-31 14:19:11 -07:00
danielsanchezq d056c6b2ab Added base vote test 2023-03-31 14:30:11 +02:00
danielsanchezq 742227a01e Add tests assertions 2023-03-31 12:58:46 +02:00
Daniel Sanchez 44253376bc
Python impl tests (#9)
* Make easy tests

* Made sure an old aggregatedQC is not used.

* Test when a block has an old qc

* adding highest voted view so that a node doesn't vote twice.

* adding highest voted view so that a node doesn't vote twice.

* Tests for voting

* Tests for voting

* Tests for voting

* Tests for voting

* Update test_happy_path.py

---------

Co-authored-by: mjalalzai <33738574+MForensic@users.noreply.github.com>
2023-03-31 02:38:23 -07:00
danielsanchezq 5dedab1d2f Make easy tests 2023-03-30 20:26:27 +02:00