lotus/itests/kit/node_worker.go

32 lines
552 B
Go
Raw Normal View History

2022-01-14 13:11:04 +00:00
package kit
import (
"context"
"net"
"net/http"
"testing"
"github.com/multiformats/go-multiaddr"
2022-06-14 15:00:51 +00:00
"github.com/filecoin-project/lotus/api"
2022-01-14 13:11:04 +00:00
)
// 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
}