Commit 29a131c
authored
test(eth): fix bloom filter test flake (#12643)
The mask changes based on the address of the deployed actor. In this
test, this address is not constant because we don't deploy with CREATE2.
Instead of checking bits and then counting the number of bits, just
re-create the expected bloom filter and verify that it's correct.
NOTE: the original test was broken because it expected 6 bits: 3 from
the topic, 3 from the address. But bloom filters are probabilistic and
we could have anywhere from 3-6 bits depending on how many collisions we
get.1 parent cc718fb commit 29a131c
1 file changed
+4
-18
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
7 | 7 | | |
8 | 8 | | |
9 | 9 | | |
10 | | - | |
11 | 10 | | |
12 | 11 | | |
13 | 12 | | |
| |||
615 | 614 | | |
616 | 615 | | |
617 | 616 | | |
618 | | - | |
619 | | - | |
620 | | - | |
| 617 | + | |
621 | 618 | | |
622 | 619 | | |
623 | | - | |
624 | | - | |
625 | | - | |
626 | | - | |
627 | | - | |
628 | | - | |
629 | | - | |
630 | | - | |
| 620 | + | |
| 621 | + | |
631 | 622 | | |
632 | | - | |
633 | | - | |
634 | | - | |
635 | | - | |
636 | | - | |
637 | | - | |
| 623 | + | |
638 | 624 | | |
639 | 625 | | |
640 | 626 | | |
| |||
0 commit comments