Skip to content
Snippets Groups Projects
Commit 7472e130 authored by Mehrdad Afshari's avatar Mehrdad Afshari
Browse files

Sort service_names returned by python reflection

While not strictly required by the protocol,
it will make testing easier.
parent 7be69fcc
No related branches found
No related tags found
No related merge requests found
......@@ -65,7 +65,7 @@ class ReflectionServicer(reflection_pb2.ServerReflectionServicer):
Args:
service_names: Iterable of fully-qualified service names available.
"""
self._service_names = list(service_names)
self._service_names = tuple(sorted(service_names))
self._pool = _POOL if pool is None else pool
def _file_by_filename(self, filename):
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment