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

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

Merged
merged 25 commits into from
Jun 16, 2023

Conversation

caglaryucekaya
Copy link

@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
Member

@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

@@ -1390,7 +1390,7 @@ impl SwapOps for EthCoin {
}

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

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
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.

@caglaryucekaya caglaryucekaya added in progress Changes will be made from the author and removed under review labels Jun 13, 2023
@caglaryucekaya caglaryucekaya added under review and removed in progress Changes will be made from the author labels Jun 13, 2023
Copy link
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
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants