mbien commented on code in PR #9772:
URL: https://github.com/apache/netbeans/pull/9772#discussion_r4434904382
##########
platform/openide.explorer/test/unit/src/org/openide/explorer/ExplorerActionsImplTest.java:
##########
@@ -120,6 +118,9 @@ public void testPasteActionGetDelegatesBlocks() throws
Exception {
assertNull("No delegates yet", action.getValue("delegates"));
em.setSelectedNodes(new Node[] { ch3 });
+ // "delegates" is a non-blocking read of the current paste types,
+ // so wait for the asynchronous action update to finish first
+ em.waitActionsFinished();
Review Comment:
the test case didn't work in the first place. adding the blocking wait
allows to remove `@RandomlyFails` and actually run it.
I can revert it and keep not running it but i thought this was better.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]
For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists