Skip to content

Fix e2e claim token API test draining calibnet test wallet #341

@sudo-shashank

Description

@sudo-shashank

We’ve encountered an issue with the new end-to-end (e2e) claim token API test. The test sends tokens to another wallet address but does not recover them at the end of execution. As a result, after some test runs, the calibnet tFIL test wallet gets drained, leading to failing tests once its balance is depleted.

Steps to Reproduce:

  • Run the new claim token API e2e test multiple times on calibnet.
  • Observe that the test wallet balance continuously decreases.
  • Eventually, tests start failing due to insufficient funds.

Expected Behavior:
The test should recover tokens back to the originating test wallet after completion, ensuring balance consistency across runs.

Proposed Fix:

  • Update the claim token API e2e test to return tokens to the original test wallet after execution.
  • Recover any tokens currently sitting in the receiving test wallet.
  • We may be able to use FilForwarder to recovery the tokens easily

Additional Context:

The issue is only observed for calibnet tFIL claim token api e2e test.
The tokens are not lost or burned — they’re being transferred to another internal test wallet owned by us.

#338 (comment)

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

Status

Done

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions