prysm-pulse/sharding/node/backend_test.go

27 lines
528 B
Go
Raw Normal View History

package node
import (
"flag"
"testing"
"github.com/ethereum/go-ethereum/sharding"
cli "gopkg.in/urfave/cli.v1"
)
// Verifies that ShardEthereum implements the Node interface.
var _ = sharding.Node(&ShardEthereum{})
// Test that the sharding node can build with default flag values.
func TestNode_Builds(t *testing.T) {
app := cli.NewApp()
set := flag.NewFlagSet("test", 0)
context := cli.NewContext(app, set, nil)
_, err := New(context)
if err != nil {
t.Fatalf("Failed to create ShardEthereum: %v", err)
}
}