Skip to content

Commit

Permalink
Add test
Browse files Browse the repository at this point in the history
  • Loading branch information
aopoltorzhicky committed Jun 26, 2024
1 parent da7bc5a commit 295f34d
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions pkg/indexer/blob_saver/module_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,12 @@ func TestBlobSaverModule(t *testing.T) {
ShareVersion: 0,
NamespaceVersion: 0,
}
b2Copy := &types.Blob{
NamespaceId: []byte{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, 0x67, 0x6d},
Data: []byte("0x676d"),
ShareVersion: 0,
NamespaceVersion: 0,
}
commitment, err := base64.StdEncoding.DecodeString("uwghsElFtoHNqQ3JrsDGj8uLW456izVbegVL/AunMOw=")
require.NoError(t, err, "decode commitment")

Expand Down Expand Up @@ -83,6 +89,10 @@ func TestBlobSaverModule(t *testing.T) {
Height: 101,
Blob: b2,
})
input.Push(&Msg{
Height: 101,
Blob: b2Copy,
})
input.Push(&Msg{
Height: 101,
EndBlock: true,
Expand Down

0 comments on commit 295f34d

Please sign in to comment.