mirror of
https://gitlab.com/pulsechaincom/prysm-pulse.git
synced 2024-12-23 11:57:18 +00:00
37bc1c67be
* adding flags * adding modified key utils * adding more funcs * more changes * more changes * documentation * changes to node * gazelle * fixing bazel build * gazelle * adding tests * more tests * addressing terence's feedback * adding geth header * test * changes * fixedd it * fixed marshalling * adding more to tests * gazelle * adding more tests * lint * add cov * cov * fix imports
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("datadir", "/tmp/datadir", "the node data directory")
|
|
context := cli.NewContext(app, set, nil)
|
|
|
|
_, err := NewValidatorClient(context)
|
|
if err != nil {
|
|
t.Fatalf("Failed to create ValidatorClient: %v", err)
|
|
}
|
|
}
|