Pārlūkot izejas kodu

Merge pull request #1485 from agapoff/improved-mock-delete-acl-response

Use response with the same version as request in MockDeleteAclsResponse
Vlad Gorodetsky 6 gadi atpakaļ
vecāks
revīzija
2af3badd8c
1 mainītis faili ar 1 papildinājumiem un 0 dzēšanām
  1. 1 0
      mockresponses.go

+ 1 - 0
mockresponses.go

@@ -913,6 +913,7 @@ func (mr *MockDeleteAclsResponse) For(reqBody versionedDecoder) encoder {
 		response.MatchingAcls = append(response.MatchingAcls, &MatchingAcl{Err: ErrNoError})
 		response.MatchingAcls = append(response.MatchingAcls, &MatchingAcl{Err: ErrNoError})
 		res.FilterResponses = append(res.FilterResponses, response)
 		res.FilterResponses = append(res.FilterResponses, response)
 	}
 	}
+	res.Version = int16(req.Version)
 	return res
 	return res
 }
 }