func Perturb(ctx context.Context, testnet *e2e.Testnet) error {
	timer := time.NewTimer(0)  
	defer timer.Stop()
	for _, node := range testnet.Nodes {
		for _, perturbation := range node.Perturbations {
			select {
			case <-ctx.Done():
				return ctx.Err()
			case <-timer.C:
				_, err := PerturbNode(ctx, node, perturbation)
				if err != nil {
					return err
				}
				timer.Reset(20 * time.Second)
			}
		}
	}
	return nil
}
Perturbs a running testnet.
package main
import (
	"context"
	"fmt"
	"time"
	rpctypes "github.com/tendermint/tendermint/rpc/coretypes"
	e2e "github.com/tendermint/tendermint/test/e2e/pkg"
)