Skip to content

Commit

Permalink
msgmux: fix arg expectation for mock in unit test
Browse files Browse the repository at this point in the history
  • Loading branch information
Roasbeef committed Mar 6, 2025
1 parent 7e7339d commit 22cad99
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion msgmux/msg_router_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ func (m *mockEndpoint) CanHandle(msg PeerMsg) bool {
}

func (m *mockEndpoint) SendMessage(ctx context.Context, msg PeerMsg) bool {
args := m.Called(msg)
args := m.Called(ctx, msg)

return args.Bool(0)
}
Expand Down

0 comments on commit 22cad99

Please sign in to comment.