Modify ↓
#12624 closed defect (fixed)
Test failure with test_get_search_results_matches_all_terms
Reported by: | Ryan J Ollos | Owned by: | Jun Omae |
---|---|---|---|
Priority: | normal | Milestone: | 1.0.14 |
Component: | search system | Version: | |
Severity: | normal | Keywords: | |
Cc: | Branch: | ||
Release Notes: |
Fix a random failure with |
||
API Changes: | |||
Internal Changes: |
Description
Here is the output from a TravisCI test failure:
====================================================================== FAIL: test_get_search_results_matches_all_terms (trac.ticket.tests.roadmap.MilestoneModuleTestCase) ---------------------------------------------------------------------- Traceback (most recent call last): File "/Users/travis/build/edgewall/trac/trac/ticket/tests/roadmap.py", line 201, in test_get_search_results_matches_all_terms self.assertEqual(milestone.description, results[0][4]) AssertionError: u'a326e942 malapplication dyce renounce nonqualification stackful Amphion upbring defectibility theriotrophical unsanctimoniousness haemoconcentration terrine ochlocratically thyroideal shoaly rivalry pseudosatirical nonappealable Pleuronectes.' != u'a326e942 malapplication dyce renounce nonqualification stackful Amphion upbring defectibility theriotrophical unsanctimoniousness haemoconcentration terrine ochlocratically thyroideal shoaly rivalry pseudosatirical nonappealable Pleuronect ...'
Attachments (0)
Change History (5)
comment:1 by , 8 years ago
comment:3 by , 8 years ago
Release Notes: | modified (diff) |
---|
Thanks. Committed in [15266] and merged in [15267-15268].
comment:4 by , 8 years ago
Resolution: | → fixed |
---|---|
Status: | new → closed |
comment:5 by , 8 years ago
Owner: | set to |
---|
Note:
See TracTickets
for help on using tickets.
That failure occurs when
random_sentence()
generates text over 240 characters. Snippet of the searching result would be shorten with 240 characters. However, I don't think we need random text in the unit tests.trac/ticket/tests/roadmap.py
from trac.tests.contentgen import random_sentence