Browse Source

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

Use response with the same version as request in MockDeleteAclsResponse
Vlad Gorodetsky 6 years ago
parent
commit
2af3badd8c
1 changed files with 1 additions and 0 deletions
  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})
 		res.FilterResponses = append(res.FilterResponses, response)
 	}
+	res.Version = int16(req.Version)
 	return res
 }