first attempt at disconnect

This commit is contained in:
William Banfield
2022-11-30 19:00:25 -05:00
parent 01c896d622
commit d2ef43b449
6 changed files with 48 additions and 7 deletions
+6
View File
@@ -47,6 +47,12 @@ func (p Provider) TerminateTendermint(ctx context.Context, n *e2e.Node) error {
func (p Provider) KillTendermint(ctx context.Context, n *e2e.Node) error {
return ExecCompose(ctx, p.Testnet.Dir, "kill", "-s", "SIGKILL", n.Name)
}
func (p Provider) Connect(ctx context.Context, n *e2e.Node) error {
return Exec(ctx, "network", "connect", p.Testnet.Name+"_"+p.Testnet.Name, n.Name)
}
func (p Provider) Disconnect(ctx context.Context, n *e2e.Node) error {
return Exec(ctx, "network", "disconnect", p.Testnet.Name+"_"+p.Testnet.Name, n.Name)
}
// dockerComposeBytes generates a Docker Compose config file for a testnet and returns the
// file as bytes to be written out to disk.