DescriptionOrder returning profiles and card by descending date_modified
The unittests (WebDataServiceAutofillTest.CreditUpdate) assume that the
newly modified credit card information will be the first one returned.
Since it has the highest date_modified value, this imply a descending
ordering of the cards when iterating.
The unittests were previously flaky as the precision of date_modified
is not high enough and both card ended up with the same value most of
the time. When the test was taking slightly more time to run, then the
modified car would end up last and the test would fail.
BUG=None
Committed: https://crrev.com/32977338f1cd4b588d4244e49860f35bdda7c3a6
Cr-Commit-Position: refs/heads/master@{#296623}
Patch Set 1 #
Total comments: 2
Messages
Total messages: 16 (4 generated)
|