Skip to content

Anchor test lead to 0x1 error without first using sol airdrop #20

@tanmaymunjal

Description

@tanmaymunjal

Describe the bug
Running the tests directly on localnet using anchor test leads to 0x1 error. This indicates not enough sol to perform action

To Reproduce
Steps to reproduce the behavior:

  1. Run the anchor test command on localnet using a dev,json with an account with 0 sol

Expected behavior
The expected behavior for tests should be to check if a user is on localnet, and run a function to
airdrop the sol expected to be necessary to run the tests if user is on localnet

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions