This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 51191 - testFindInFile is failing randomly
Summary: testFindInFile is failing randomly
Status: RESOLVED FIXED
Alias: None
Product: editor
Classification: Unclassified
Component: Search (show other bugs)
Version: 4.x
Hardware: All All
: P3 blocker (vote)
Assignee: issues@editor
URL:
Keywords: TEST
Depends on:
Blocks:
 
Reported: 2004-11-05 10:26 UTC by Miloslav Metelka
Modified: 2007-11-05 13:42 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Miloslav Metelka 2004-11-05 10:26:21 UTC
There are random failures of the test from time to
time:
OS / Machine-name / Build No. / JDK
Windows 2K / QA-W2K-S3 / 200410261800 / 1.5.0_01-ea
Windows XP / qa-xp-s3 / 200410281800 / 1.5.0_01-ea

The reason is typically:
Wait next node loaded under parent [Projects,
editor_test, Source Packages,
keyboard_shortcuts.FindInFileTest] when requested
was [ Projects, editor_test, Source packages,
keyboard_shortcuts.FindInFileTest, testFindInFile ]

So apparently the test is failing because of some
infrastructure problem - the test cannot find the
node of the test file in the project which however
is apparently there. I'm wondering whether similar
issues were not yet reported by any other modules'
tests.
Comment 1 Miloslav Metelka 2004-11-09 10:23:07 UTC
Adding Petr F. to cc. Hope that we can resolve this in the near future.
Comment 2 Roman Strobl 2004-12-07 15:56:51 UTC
Changing subcomponent to search.
Comment 3 Roman Strobl 2004-12-22 10:51:30 UTC
It seems that I have fixed the issue finally. The problem was that on
slow testing machines it took too long for nodes to load. I've added
code which waits till the child appears for each of the nodes from
root down to the child. So far I have not seen any failures, if we'll
get any, reopen the issue. 

See changes in lib/EditorTestCase.java for details.