@@ -21,6 +21,8 @@ import (
2121 "testing"
2222
2323 "github.com/stretchr/testify/require"
24+
25+ "github.com/algorand/go-algorand/test/partitiontest"
2426)
2527
2628func MultisigSigPrint (sig MultisigSig ) {
@@ -39,6 +41,7 @@ func MultisigSigPrint(sig MultisigSig) {
3941// detect invalid threshold and versions
4042//
4143func TestMultisigAddr (t * testing.T ) {
44+ partitiontest .PartitionTest (t )
4245 var s Seed
4346 var secrets []* SecretKey
4447 var pks []PublicKey
@@ -76,6 +79,7 @@ func TestMultisigAddr(t *testing.T) {
7679// signs with 3 keys to get 3 signatures
7780// assembles 3 signatures, verify the msig
7881func TestMultisig (t * testing.T ) {
82+ partitiontest .PartitionTest (t )
7983 var msig MultisigSig
8084 var sigs []MultisigSig
8185
@@ -152,6 +156,7 @@ func TestMultisig(t *testing.T) {
152156// 4. merge msig1 and msig2
153157// 5. verify the merged one
154158func TestMultisigAddAndMerge (t * testing.T ) {
159+ partitiontest .PartitionTest (t )
155160 var msig1 MultisigSig
156161 var msig2 MultisigSig
157162 var sigs []MultisigSig
@@ -233,6 +238,7 @@ func TestMultisigAddAndMerge(t *testing.T) {
233238}
234239
235240func TestEmptyMultisig (t * testing.T ) {
241+ partitiontest .PartitionTest (t )
236242 var s Seed
237243 var secrets * SecretKey
238244 var pks []PublicKey
@@ -258,6 +264,7 @@ func TestEmptyMultisig(t *testing.T) {
258264}
259265
260266func TestIncorrectAddrresInMultisig (t * testing.T ) {
267+ partitiontest .PartitionTest (t )
261268 var s Seed
262269 var secrets * SecretKey
263270 var pks []PublicKey
@@ -286,6 +293,7 @@ func TestIncorrectAddrresInMultisig(t *testing.T) {
286293}
287294
288295func TestMoreThanMaxSigsInMultisig (t * testing.T ) {
296+ partitiontest .PartitionTest (t )
289297 var s Seed
290298 var secrets []* SecretKey
291299 var pks []PublicKey
@@ -323,6 +331,7 @@ func TestMoreThanMaxSigsInMultisig(t *testing.T) {
323331}
324332
325333func TestOneSignatureIsEmpty (t * testing.T ) {
334+ partitiontest .PartitionTest (t )
326335 var s Seed
327336 var secrets []* SecretKey
328337 var pks []PublicKey
@@ -363,6 +372,7 @@ func TestOneSignatureIsEmpty(t *testing.T) {
363372// in this test we want to test what happen if one of the signatures are not valid.
364373// we create case where are enoguht valid signatures (that pass the thrashold). but since one is false. everything fails.
365374func TestOneSignatureIsInvalid (t * testing.T ) {
375+ partitiontest .PartitionTest (t )
366376 var s Seed
367377 var userkeypair []* SecretKey
368378 var pks []PublicKey
@@ -404,6 +414,7 @@ func TestOneSignatureIsInvalid(t *testing.T) {
404414}
405415
406416func TestMultisigLessThanTrashold (t * testing.T ) {
417+ partitiontest .PartitionTest (t )
407418 var msig MultisigSig
408419 var sigs []MultisigSig
409420
0 commit comments