commit | 9a06e099bf0230d54201b5c28bee013b1239693b | [log] [tgz] |
---|---|---|
author | Christopher Ferris <cferris@google.com> | Wed Sep 25 09:04:42 2019 -0700 |
committer | Christopher Ferris <cferris@google.com> | Wed Sep 25 09:12:09 2019 -0700 |
tree | 68919788630dd697b6d6ddbad939c5777743135a | |
parent | 2b6124fe071c058608b3031297ba3f0bfb8a4dcd [diff] |
Avoid races in the shard testing. Create a function that sorts the tests within the test output so that no matter when the tests finish, the output will always be the same. This fixes flakiness in the test. Test: Added an artificial sleep in a shard test that will be list first. Test: Ran the normal set of unit tests hundreds of time. Change-Id: Ie4e72c52578bf11eac0a1a1b830d6ab70975ca23