prysm-pulse/crypto
minh-bq 25ebd335cb
Fix bls signature batch unit test (#12602)
We randomly observe this failure when running unit test

go test -test.v -run=^TestSignatureBatch_AggregateBatch/common_and_uncommon_messages_in_batch_with_multiple_messages
=== RUN   TestSignatureBatch_AggregateBatch
=== RUN   TestSignatureBatch_AggregateBatch/common_and_uncommon_messages_in_batch_with_multiple_messages
    signature_batch_test.go:643: AggregateBatch() Descriptions got = [test signature bls aggregated signature test signature bls aggregated signature test signature bls aggregated signature], want [bls aggregated signature test signature bls aggregated signature test signature bls aggregated signature test signature]
--- FAIL: TestSignatureBatch_AggregateBatch (0.02s)
    --- FAIL: TestSignatureBatch_AggregateBatch/common_and_uncommon_messages_in_batch_with_multiple_messages (0.02s)

The problem is that the signature sort forgets to swap the description when a
swap occurs. This commit adds the description swap when swap occurs.

Co-authored-by: james-prysm <90280386+james-prysm@users.noreply.github.com>
2023-07-07 14:26:02 -05:00
..
bls Fix bls signature batch unit test (#12602) 2023-07-07 14:26:02 -05:00
ecdsa Update to V4 🚀 (#12134) 2023-03-17 18:52:56 +00:00
hash Update to V4 🚀 (#12134) 2023-03-17 18:52:56 +00:00
keystore Enable whitespace linter & fix findings (#12273) 2023-04-18 18:58:27 +00:00
rand Update to V4 🚀 (#12134) 2023-03-17 18:52:56 +00:00