We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d5c5922 commit ba3587bCopy full SHA for ba3587b
foundation/bus/bus/reqreply_test.go
@@ -4,6 +4,8 @@ import (
4
"fmt"
5
"testing"
6
7
+ "github.com/stretchr/testify/require"
8
+
9
"github.com/suborbital/e2core/foundation/bus/testutil"
10
)
11
@@ -41,10 +43,11 @@ func TestRequestReplyAsync(t *testing.T) {
41
43
42
44
counter := testutil.NewAsyncCounter(10)
45
- p1.Send(NewMsg(MsgTypeDefault, []byte("joey"))).OnReply(func(msg Message) error {
46
+ err := p1.Send(NewMsg(MsgTypeDefault, []byte("joey"))).OnReply(func(msg Message) error {
47
counter.Count()
48
return nil
49
})
50
+ require.NoError(t, err, "p1.Send encountered an error")
51
52
p2 := g.ConnectWithReplay()
53
p2.On(func(msg Message) error {
0 commit comments