mirror of
https://gitlab.com/pulsechaincom/prysm-pulse.git
synced 2024-12-23 03:51:29 +00:00
878a332913
Former-commit-id: a4677d647a959cbbbe9c4046e16fa6fa761133ac [formerly f775f6e9529e64cb1392a22f8ef15b186efa14ed] Former-commit-id: 42350204f72fcba4626a39e61b6e64b6f0afba32
22 lines
457 B
Go
22 lines
457 B
Go
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)
|
|
}
|
|
}
|