@@ -47,6 +47,8 @@ func getVAAWithSeqNum(seqNum uint64) vaa.VAA {
4747
4848// Testing the expected default behavior of a CreateGovernanceVAA
4949func TestVaaIDFromString (t * testing.T ) {
50+ t .Parallel ()
51+
5052 vaaIdString := "1/0000000000000000000000000000000000000000000000000000000000000004/1"
5153 vaaID , _ := VaaIDFromString (vaaIdString )
5254 expectAddr := vaa.Address {0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 4 }
@@ -57,6 +59,8 @@ func TestVaaIDFromString(t *testing.T) {
5759}
5860
5961func TestVaaIDFromVAA (t * testing.T ) {
62+ t .Parallel ()
63+
6064 testVaa := getVAA ()
6165 vaaID := VaaIDFromVAA (& testVaa )
6266 expectAddr := vaa.Address {0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 4 }
@@ -67,6 +71,8 @@ func TestVaaIDFromVAA(t *testing.T) {
6771}
6872
6973func TestBytes (t * testing.T ) {
74+ t .Parallel ()
75+
7076 vaaIdString := "1/0000000000000000000000000000000000000000000000000000000000000004/1"
7177 vaaID , _ := VaaIDFromString (vaaIdString )
7278 expected := []byte {0x73 , 0x69 , 0x67 , 0x6e , 0x65 , 0x64 , 0x2f , 0x31 , 0x2f , 0x30 , 0x30 , 0x30 , 0x30 , 0x30 , 0x30 , 0x30 , 0x30 , 0x30 , 0x30 , 0x30 , 0x30 , 0x30 , 0x30 , 0x30 , 0x30 , 0x30 , 0x30 , 0x30 , 0x30 , 0x30 , 0x30 , 0x30 , 0x30 , 0x30 , 0x30 , 0x30 , 0x30 , 0x30 , 0x30 , 0x30 , 0x30 , 0x30 , 0x30 , 0x30 , 0x30 , 0x30 , 0x30 , 0x30 , 0x30 , 0x30 , 0x30 , 0x30 , 0x30 , 0x30 , 0x30 , 0x30 , 0x30 , 0x30 , 0x30 , 0x30 , 0x30 , 0x30 , 0x30 , 0x30 , 0x30 , 0x30 , 0x30 , 0x30 , 0x30 , 0x30 , 0x30 , 0x30 , 0x34 , 0x2f , 0x31 }
@@ -75,6 +81,8 @@ func TestBytes(t *testing.T) {
7581}
7682
7783func TestEmitterPrefixBytesWithChainIDAndAddress (t * testing.T ) {
84+ t .Parallel ()
85+
7886 vaaIdString := "1/0000000000000000000000000000000000000000000000000000000000000004/1"
7987 vaaID , _ := VaaIDFromString (vaaIdString )
8088 expected := []byte {0x73 , 0x69 , 0x67 , 0x6e , 0x65 , 0x64 , 0x2f , 0x31 , 0x2f , 0x30 , 0x30 , 0x30 , 0x30 , 0x30 , 0x30 , 0x30 , 0x30 , 0x30 , 0x30 , 0x30 , 0x30 , 0x30 , 0x30 , 0x30 , 0x30 , 0x30 , 0x30 , 0x30 , 0x30 , 0x30 , 0x30 , 0x30 , 0x30 , 0x30 , 0x30 , 0x30 , 0x30 , 0x30 , 0x30 , 0x30 , 0x30 , 0x30 , 0x30 , 0x30 , 0x30 , 0x30 , 0x30 , 0x30 , 0x30 , 0x30 , 0x30 , 0x30 , 0x30 , 0x30 , 0x30 , 0x30 , 0x30 , 0x30 , 0x30 , 0x30 , 0x30 , 0x30 , 0x30 , 0x30 , 0x30 , 0x30 , 0x30 , 0x30 , 0x30 , 0x30 , 0x30 , 0x30 , 0x34 }
@@ -83,11 +91,15 @@ func TestEmitterPrefixBytesWithChainIDAndAddress(t *testing.T) {
8391}
8492
8593func TestEmitterPrefixBytesWithOnlyChainID (t * testing.T ) {
94+ t .Parallel ()
95+
8696 vaaID := VAAID {EmitterChain : vaa .ChainID (26 )}
8797 assert .Equal (t , []byte ("signed/26" ), vaaID .EmitterPrefixBytes ())
8898}
8999
90100func TestStoreSignedVAAUnsigned (t * testing.T ) {
101+ t .Parallel ()
102+
91103 dbPath := t .TempDir ()
92104 db := OpenDb (zap .NewNop (), & dbPath )
93105 defer db .Close ()
@@ -100,6 +112,8 @@ func TestStoreSignedVAAUnsigned(t *testing.T) {
100112}
101113
102114func TestStoreSignedVAASigned (t * testing.T ) {
115+ t .Parallel ()
116+
103117 dbPath := t .TempDir ()
104118 db := OpenDb (zap .NewNop (), & dbPath )
105119 defer db .Close ()
@@ -115,6 +129,12 @@ func TestStoreSignedVAASigned(t *testing.T) {
115129}
116130
117131func TestStoreSignedVAABatch (t * testing.T ) {
132+ if testing .Short () {
133+ t .Skip ("skipping large signed VAA batch stress test in short mode" )
134+ }
135+
136+ t .Parallel ()
137+
118138 dbPath := t .TempDir ()
119139 db := OpenDb (zap .NewNop (), & dbPath )
120140 defer db .Close ()
@@ -174,6 +194,8 @@ func TestStoreSignedVAABatch(t *testing.T) {
174194}
175195
176196func TestGetSignedVAABytes (t * testing.T ) {
197+ t .Parallel ()
198+
177199 dbPath := t .TempDir ()
178200 db := OpenDb (zap .NewNop (), & dbPath )
179201 defer db .Close ()
@@ -201,6 +223,8 @@ func TestGetSignedVAABytes(t *testing.T) {
201223}
202224
203225func TestFindEmitterSequenceGap (t * testing.T ) {
226+ t .Parallel ()
227+
204228 dbPath := t .TempDir ()
205229 db := OpenDb (zap .NewNop (), & dbPath )
206230 defer db .Close ()
0 commit comments