diff --git a/templates/test/unit/src/org/netbeans/modules/templates/ui/TemplatesPanelTest.java b/templates/test/unit/src/org/netbeans/modules/templates/ui/TemplatesPanelTest.java --- a/templates/test/unit/src/org/netbeans/modules/templates/ui/TemplatesPanelTest.java +++ b/templates/test/unit/src/org/netbeans/modules/templates/ui/TemplatesPanelTest.java @@ -131,6 +131,7 @@ FileObject root = FileUtil.getConfigRoot(); FileObject fo = FileUtil.createFolder(root, "Templates/SimpleFolder"); try { + try {Thread.sleep(500); } catch (InterruptedException iex) {} fo.setAttribute("simple", Boolean.FALSE); Node n = TemplatesPanel.getTemplateRootNode(); Node[] arr = n.getChildren().getNodes(true);