Skip to content

Conversation

elpiel
Copy link
Member

@elpiel elpiel commented Apr 26, 2022

Adds additional multi-chain tests:

  • for CAMPAIGN_3 (on Chain # 1) with multiple Events.
  • RejectState for CAMPAIGN_2 (on Chain # 1337) with multiple Events.
  • transitioning from RejectState to unhealthy ApproveState (is_healthy: false) for CAMPAIGN_2
  • transitioning from unhealthy ApproveState to health for CAMPAIGN_2

@elpiel elpiel marked this pull request as draft April 26, 2022 15:43
@elpiel elpiel marked this pull request as ready for review May 20, 2022 16:36
@elpiel elpiel requested a review from simzzz May 20, 2022 16:42
Comment on lines 88 to 92
// Address 7
// (
// *PUBLISHER_2,
// keystore_options(&format!("{}_keystore.json", *PUBLISHER_2), "ganache7"),
// ),
Copy link
Member Author

Choose a reason for hiding this comment

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

I've added it as a comment to be easier for addition if the need arises.

channel_tick_timeout = 5000
# for test_harness make it larger
# Default: 5000
channel_tick_timeout = 8000
Copy link
Member Author

Choose a reason for hiding this comment

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

I still get timeouts in test_harness sometimes, we have to check why this is - performance issue or something wrong with the services

@elpiel
Copy link
Member Author

elpiel commented May 24, 2022

Test is failing as it's comparing the Validator message, which contains a received timestamp. This should not be the case and I will make sure to exclude the timestamp from the assertions.

Comment on lines +521 to +523
redis_pool: deadpool::managed::Object<crate::db::redis_pool::Manager>,
#[allow(dead_code)]
db_pool: deadpool::managed::Object<crate::db::tests_postgres::Manager>,
Copy link
Member Author

Choose a reason for hiding this comment

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

Because the Object was getting dropped tests failed randomly.
Object hold the Pool of Pools, so we must hold these values until the Application struct get drop itself

Copy link
Contributor

@simzzz simzzz left a comment

Choose a reason for hiding this comment

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

The comments made the test logic much easier to understand. I will use a similar approach when writing more complex tests.

@elpiel elpiel merged commit 852e864 into aip-61-adex-v5 May 29, 2022
@elpiel elpiel deleted the test_harness-additional-multichain-tests branch May 29, 2022 17:09
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