mirror of
https://github.com/tendermint/tendermint.git
synced 2026-02-03 18:42:14 +00:00
19 lines
312 B
Go
19 lines
312 B
Go
package factory
|
|
|
|
import (
|
|
"testing"
|
|
|
|
"github.com/stretchr/testify/assert"
|
|
|
|
"github.com/tendermint/tendermint/types"
|
|
)
|
|
|
|
func TestMakeHeader(t *testing.T) {
|
|
_, err := MakeHeader(&types.Header{})
|
|
assert.NoError(t, err)
|
|
}
|
|
|
|
func TestRandomNodeID(t *testing.T) {
|
|
assert.NotPanics(t, func() { RandomNodeID() })
|
|
}
|