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

Summary: testFindInFile is failing randomly
Product: editor Reporter: Miloslav Metelka <mmetelka>
Component: SearchAssignee: issues@editor <issues>
Status: RESOLVED FIXED    
Severity: blocker Keywords: TEST
Priority: P3    
Version: 4.x   
Hardware: All   
OS: All   
Issue Type: DEFECT Exception Reporter:

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.