lotus/itests/kit/node_worker.go
2022-06-14 17:00:51 +02:00

32 lines
552 B
Go

package kit
import (
"context"
"net"
"net/http"
"testing"
"github.com/multiformats/go-multiaddr"
"github.com/filecoin-project/lotus/api"
)
// TestWorker represents a worker enrolled in an Ensemble.
type TestWorker struct {
api.Worker
t *testing.T
// ListenAddr is the address on which an API server is listening, if an
// API server is created for this Node
ListenAddr multiaddr.Multiaddr
Stop func(context.Context) error
FetchHandler http.HandlerFunc
MinerNode *TestMiner
RemoteListener net.Listener
options nodeOpts
}