Skip to content

Commit

Permalink
Add e2e test
Browse files Browse the repository at this point in the history
  • Loading branch information
ferranbt committed Feb 29, 2024
1 parent 7579e04 commit 6ad5f9f
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions suave/e2e/workflow_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -1305,6 +1305,19 @@ func TestE2E_Precompile_CryptoBLS(t *testing.T) {
require.True(t, valid)
}

func TestE2E_Precompile_RandomBytes(t *testing.T) {
fr := newFramework(t)
defer fr.Close()

// generate 32 random bytes
res := fr.callPrecompile("randomBytes", []interface{}{uint64(32)})
require.Len(t, res[0], 32)

// generate 64 random bytes
res = fr.callPrecompile("randomBytes", []interface{}{uint64(64)})
require.Len(t, res[0], 64)
}

type clientWrapper struct {
t *testing.T

Expand Down

0 comments on commit 6ad5f9f

Please sign in to comment.