Explorar el Código

Use response with the same version as request in MockDeleteTopicsResponse

Vitaly Agapov hace 5 años
padre
commit
00f3bf9126
Se han modificado 1 ficheros con 1 adiciones y 0 borrados
  1. 1 0
      mockresponses.go

+ 1 - 0
mockresponses.go

@@ -667,6 +667,7 @@ func (mr *MockDeleteTopicsResponse) For(reqBody versionedDecoder) encoder {
 	for _, topic := range req.Topics {
 		res.TopicErrorCodes[topic] = ErrNoError
 	}
+	res.Version = int16(req.Version)
 	return res
 }