Traffic Ops unit tests: TestGetMonitoringJSON sometimes fails#4920
Traffic Ops unit tests: TestGetMonitoringJSON sometimes fails#4920ocket8888 merged 3 commits intoapache:masterfrom
Conversation
zrhoffman
left a comment
There was a problem hiding this comment.
Although the tests do pass, is there a way to accomplish this that makes use of the existing code? Take a look at the sortable types in this file and how they implement interface.Less() and interface.Swap() so they can use sort.Sort().
|
@zrhoffman I changed it so that it gets called from the |
Right, but for the interface sorting part, is there a way to use a If we can use the same code pattern for sorting across different Go interfaces, it will make it easier for the next maintainer who has to modify this code. |
|
@zrhoffman Should be done now |
zrhoffman
left a comment
There was a problem hiding this comment.
Awesome, looks great and passes consistently.
What does this PR (Pull Request) do?
Which Traffic Control components are affected by this PR?
What is the best way to verify this PR?
Follow the steps in #4919
should result in 0 failures, always.
If this is a bug fix, what versions of Traffic Control are affected?
The following criteria are ALL met by this PR