Skip to content

Commit

Permalink
chore(proto): match HeartbeatResponse version (#2576)
Browse files Browse the repository at this point in the history
In mockresponses.go ensure we reply to a HeartbeatRequest with a matching Version of HeartbeatResponse

Signed-off-by: Dominic Evans <[email protected]>
  • Loading branch information
dnwe authored Aug 7, 2023
1 parent be809f9 commit e8808a6
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion mockresponses.go
Original file line number Diff line number Diff line change
Expand Up @@ -1340,7 +1340,10 @@ func NewMockHeartbeatResponse(t TestReporter) *MockHeartbeatResponse {
}

func (m *MockHeartbeatResponse) For(reqBody versionedDecoder) encoderWithHeader {
resp := &HeartbeatResponse{}
req := reqBody.(*HeartbeatRequest)
resp := &HeartbeatResponse{
Version: req.version(),
}
return resp
}

Expand Down

0 comments on commit e8808a6

Please sign in to comment.