iotaledger / iotaledger/crypto.rs

Flaky tests

Open
#77 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Rust
Stars
63
Forks
24
PR merge metrics
No merged PRs in 30d

Description

## Bug description
During a recent merge, we noticed that suddenly coverage went down in a part of the library that we hadn't touched. After some examination, we discovered that these two tests are flaky:

This test is flaky around 20% of the time:
`test_wordlist_codec_error_detection`

This one is flaky about 5% of the time:
`test_wordlist_codec_different_data_different_encodings`

To prove this, you can run:
```
$ while true; do; cargo test --features bip39,bip39-en,bip39-jp --test bip39; done
```

These two tests have something in common:
```
OsRng.fill_bytes(&mut data);
let ws = choose_wordlist();
let ms = wordlist::encode(&data, ws).unwrap();
```

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.