The test would sometimes fail because the metadata lines are built from a map and map iteration order in Go is non-deterministic. Therefore, the lines may be ordered differently between different test runs.
Now, the test sorts the metadata lines of the telegram message so they are always the same and only then verifies the expected output.
The test would sometimes fail because the metadata lines are built from a map and map iteration order in Go is non-deterministic. Therefore, the lines may be ordered differently between different test runs.
Now, the test sorts the metadata lines of the telegram message so they are always the same and only then verifies the expected output.
closes #867