Skip to content

Commit

Permalink
Add documentation for no more wallets test error
Browse files Browse the repository at this point in the history
- Add documentation that describes what to do if the developer encounters a "no
  more wallets" error while testing.
  • Loading branch information
sevanspowell committed May 4, 2022
1 parent 4c177da commit ecedb63
Showing 1 changed file with 20 additions and 0 deletions.
20 changes: 20 additions & 0 deletions docs/contributing/Testing.md
Original file line number Diff line number Diff line change
Expand Up @@ -175,6 +175,26 @@ The default log level for log files is Info.
Only Error level logs are shown on stdout during test execution. To
change this, set the `*_MIN_SEVERITY` variables shown above.

#### Common Failures and Resolution

##### No More Wallets

If your test fails with something like:

```
user error (No more faucet wallet available in MVar!)
```

Generate more wallet mnemonics and populate the appropriate list in `lib/core-integration/src/Test/Integration/Faucet.hs`.

Generate new mnemonics with:

```
nix build .#cardano-wallet
# Size may vary depending on which array you need to add to.
./result/bin/cardano-wallet recovery-phrase generate --size 15
```

## Mock servers

Use the `cardano-wallet:mock-token-metadata-server` executable as a
Expand Down

0 comments on commit ecedb63

Please sign in to comment.