Skip to content

feat(watchtower): move watchtower tests to new testnet#1846

Merged
shamardy merged 25 commits intodevfrom
move-watchtower-tests
Jun 16, 2023
Merged

feat(watchtower): move watchtower tests to new testnet#1846
shamardy merged 25 commits intodevfrom
move-watchtower-tests

Conversation

@caglaryucekaya
Copy link
Copy Markdown

@caglaryucekaya caglaryucekaya commented May 30, 2023

This PR:

  • Moves the watchtower integration tests to the new ethereum testnet and removes the ignore attributes
  • Adds a new test case for watcher rewards
  • Fixes the unstable send_and_refund_eth_payment, send_and_refund_erc20_payment, test_nonce_lock and test_withdraw_and_send tests that were failing due to concurrency

@caglaryucekaya caglaryucekaya changed the title Move watchtower tests to new testnet feat (watchtower): Move watchtower tests to new testnet May 30, 2023
@caglaryucekaya caglaryucekaya changed the title feat (watchtower): Move watchtower tests to new testnet feat(watchtower): Move watchtower tests to new testnet May 30, 2023
@caglaryucekaya caglaryucekaya changed the title feat(watchtower): Move watchtower tests to new testnet feat(watchtower): move watchtower tests to new testnet May 30, 2023
@caglaryucekaya caglaryucekaya marked this pull request as ready for review June 12, 2023 23:11
onur-ozkan
onur-ozkan previously approved these changes Jun 13, 2023
Copy link
Copy Markdown

@onur-ozkan onur-ozkan left a comment

Choose a reason for hiding this comment

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

only couple non-blocker suggestions


fn is_supported_by_watchers(&self) -> bool {
false
std::env::var("USE_WATCHER_REWARD").is_ok()
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Can we use coins configuration instead of re-fetching the environment?

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

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

I did this to enable watcher rewards in certain tests and disable in others temporarily. Soon I will implement watcher rewards as an option for orders and there won't be need for this anymore.

Copy link
Copy Markdown
Collaborator

@shamardy shamardy left a comment

Choose a reason for hiding this comment

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

🔥

@shamardy shamardy merged commit e40d037 into dev Jun 16, 2023
@shamardy shamardy deleted the move-watchtower-tests branch June 16, 2023 00:42
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.

3 participants