You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

18 lines
312 B

  1. package factory
  2. import (
  3. "testing"
  4. "github.com/stretchr/testify/assert"
  5. "github.com/tendermint/tendermint/types"
  6. )
  7. func TestMakeHeader(t *testing.T) {
  8. _, err := MakeHeader(&types.Header{})
  9. assert.NoError(t, err)
  10. }
  11. func TestRandomNodeID(t *testing.T) {
  12. assert.NotPanics(t, func() { RandomNodeID() })
  13. }