add tests / modify providers setup

This commit is contained in:
Callum Waters
2021-08-25 19:24:15 +02:00
parent d44d281d80
commit d71edfc960
12 changed files with 197 additions and 174 deletions

View File

@@ -5,8 +5,6 @@ snapshot_interval = 3
[node.validator03]
snapshot_interval = 3
[node.validator04]
snapshot_interval =3
[node.validator05]
state_sync = true
start_at = 5
persistent_peers = ["validator01", "validator02"]

View File

@@ -168,12 +168,21 @@ func NewCLI() *CLI {
},
})
cli.root.AddCommand(&cobra.Command{
Use: "pause",
Short: "Pauses the Docker testnet",
RunE: func(cmd *cobra.Command, args []string) error {
logger.Info("Pausing testnet")
return execCompose(cli.testnet.Dir, "pause")
},
})
cli.root.AddCommand(&cobra.Command{
Use: "resume",
Short: "Resumes the Docker testnet",
RunE: func(cmd *cobra.Command, args []string) error {
logger.Info("Resuming testnet")
return execCompose(cli.testnet.Dir, "up")
return execCompose(cli.testnet.Dir, "unpause")
},
})