mirror of
https://gitlab.com/pulsechaincom/prysm-pulse.git
synced 2024-12-26 05:17:22 +00:00
798bbbdc82
* coldstart flags for validator * WIP beacon node flags * wip beacon chain, flag fix in validator, arg fix in validator * checkpoint * Added interop service * working on mock chainstart * save the state lol * fix tests * Save genesis validators * gaz * fix validator help flags * WaitForChainStart actually waits for genesis time * cold start fixes * cache * change back * allow for genesis state too * remove logs * increase mmap size * dont process if head doesn't exist * add 10ms tolerance * enable libp2p debug at debug, fix pubsub * works with checkpt * initialize justified and finalized in db * Removed preloadStatePath from blockchain service * Clean up * Write to disk for now post state * revert b466dd536f8eadbdae2264a545a755370223d917 * Builds * Only RPC test fails now * use minimal config, no demo config * clean up branch * Lint * resolve lint * more lint fixes * lint * fix viz * Fixing RPC test * skip before epoch 2 * RPC time out * Fixed ordering * rename * remove some dbg statements * ensure index is correct * fix some panics * getting closer * fix tests * Fix private key * Fixed RPC test * Fixed beacon chain build for docker * Add interop.go to validator go_image * Fixed docker build * handle errors * skip test, skip disconnecting peers * Fixed docker build * tolerance for attestation processing * revert copy * clearer err message parse * fix launching from dep contract
42 lines
898 B
Go
42 lines
898 B
Go
package main
|
|
|
|
import (
|
|
"testing"
|
|
|
|
"github.com/urfave/cli"
|
|
)
|
|
|
|
func TestAllFlagsExistInHelp(t *testing.T) {
|
|
// If this test is failing, it is because you've recently added/removed a
|
|
// flag in beacon chain main.go, but did not add/remove it to the usage.go
|
|
// flag grouping (appHelpFlagGroups).
|
|
|
|
var helpFlags []cli.Flag
|
|
for _, group := range appHelpFlagGroups {
|
|
helpFlags = append(helpFlags, group.Flags...)
|
|
}
|
|
|
|
for _, flag := range appFlags {
|
|
if !doesFlagExist(flag, helpFlags) {
|
|
t.Errorf("Flag %s does not exist in help/usage flags.", flag.GetName())
|
|
}
|
|
}
|
|
|
|
for _, flag := range helpFlags {
|
|
if !doesFlagExist(flag, appFlags) {
|
|
t.Errorf("Flag %s does not exist in main.go, "+
|
|
"but exists in help flags", flag.GetName())
|
|
}
|
|
}
|
|
}
|
|
|
|
func doesFlagExist(flag cli.Flag, flags []cli.Flag) bool {
|
|
for _, f := range flags {
|
|
if f == flag {
|
|
return true
|
|
}
|
|
}
|
|
|
|
return false
|
|
}
|