Skip to content

Commit

Permalink
TestSendProvide: set an error reporter
Browse files Browse the repository at this point in the history
  • Loading branch information
zenhack committed Jun 26, 2023
1 parent 4264f84 commit 67b1a62
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions rpc/3ph_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -28,9 +28,13 @@ func TestSendProvide(t *testing.T) {
pp := testcapnp.PingPong_ServerToClient(&pingPonger{})
defer pp.Release()

introducer := j.Join(nil)
recipient := j.Join(nil)
provider := j.Join(nil)
cfgOpts := func(opts *rpc.Options) {
opts.ErrorReporter = testErrorReporter{tb: t}
}

introducer := j.Join(cfgOpts)
recipient := j.Join(cfgOpts)
provider := j.Join(cfgOpts)

go introducer.Serve(ctx)

Expand Down

0 comments on commit 67b1a62

Please sign in to comment.