Documentation
¶
Overview ¶
Package testcluster builds the cluster the tool tests look at.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Fixture ¶
type Fixture struct {
C *grpcproctest.Cluster
Sup grpcproc.PID // a supervisor with children "w1" and "w2"
Stuck grpcproc.PID // "stuck": busy in a handler, 3 messages waiting
Talker grpcproc.PID // "talker": publishes state=ready through WithInspect, holds the global name "room:talker"
Echo grpcproc.PID // "echo" on node "b"
Release func() // unblocks "stuck"
Resolver grpcproc.Resolver
}
Fixture is what Start leaves running on node "a".
func Start ¶
Start runs nodes a and b (and any others named) with Inspectors that forward to each other, and links a to b. Node a backs off from a peer whose dials fail (Config.DialBackoff), so a test can show it a down link, and says version=1.0 in its metadata. A node named "nonames" has no global names, and one named "unlisted" has names it cannot list.
func (*Fixture) Cron ¶ added in v0.1.0
Cron starts a grpcproc/cron process registered as name on node, with jobs that do not come due while a test runs: "yearly", "leap" (February 29) and "paused", disabled.