mirror of
https://gitlab.com/pulsechaincom/prysm-pulse.git
synced 2025-01-08 10:41:19 +00:00
68eba02cc2
* 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
27 lines
535 B
Go
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)
|
|
}
|
|
}
|