mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-18 09:34:34 +07:00
testng: ensure sync on same instance (IDEA-170700)
This commit is contained in:
@@ -22,9 +22,11 @@ public class IDEATestNGInvokedMethodListener implements IInvokedMethodListener {
|
||||
myListener = listener;
|
||||
}
|
||||
|
||||
public synchronized void beforeInvocation(IInvokedMethod method, ITestResult testResult) {
|
||||
if (!testResult.getMethod().isTest()) {
|
||||
myListener.onConfigurationStart(myListener.createDelegated(testResult));
|
||||
public void beforeInvocation(IInvokedMethod method, ITestResult testResult) {
|
||||
synchronized (myListener) {
|
||||
if (!testResult.getMethod().isTest()) {
|
||||
myListener.onConfigurationStart(myListener.createDelegated(testResult));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user