prysm-pulse/sharding/node/backend_test.go
Preston Van Loon 68eba02cc2 Remove most of the remaining geth code and set up bazel (#235)
* Remove most of the remaining geth code and set up bazel for this

* chmod +x

* Add flake check

* better flake detection


Former-commit-id: 5c332ecbf2923943f646f1fe40befa95be883329 [formerly 99590fc354514584700e5ce8d7d30a8a7d541f29]
Former-commit-id: e5f919b553fe698e98090965d34eb721990b5693
2018-07-07 13:23:19 -04:00

27 lines
535 B
Go

package node
import (
"flag"
"testing"
"github.com/prysmaticlabs/geth-sharding/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)
}
}