prysm-pulse/beacon-chain/node/node_test.go

22 lines
457 B
Go
Raw Normal View History

package node
import (
"flag"
"testing"
"github.com/urfave/cli"
)
// 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)
set.String("web3provider", "ws//127.0.0.1:8546", "web3 provider ws or IPC endpoint")
context := cli.NewContext(app, set, nil)
_, err := New(context)
if err != nil {
t.Fatalf("Failed to create BeaconNode: %v", err)
}
}