You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@jmeter.apache.org by vl...@apache.org on 2020/03/08 13:03:57 UTC
[jmeter] branch master updated: Add ExecutionMode.SAME_THREAD to
JMeterSerialTest to ensure the tests are not executed concurrently
This is an automated email from the ASF dual-hosted git repository.
vladimirsitnikov pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/jmeter.git
The following commit(s) were added to refs/heads/master by this push:
new a52acfc Add ExecutionMode.SAME_THREAD to JMeterSerialTest to ensure the tests are not executed concurrently
a52acfc is described below
commit a52acfc0c3dedb49b6870fe8f2bfd5ca12579dcf
Author: Vladimir Sitnikov <si...@gmail.com>
AuthorDate: Sun Mar 8 14:53:27 2020 +0300
Add ExecutionMode.SAME_THREAD to JMeterSerialTest to ensure the tests are not executed concurrently
It might probably be better to use @ResourceLock in the future.
---
src/core/src/test/java/org/apache/jorphan/test/JMeterSerialTest.java | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/src/core/src/test/java/org/apache/jorphan/test/JMeterSerialTest.java b/src/core/src/test/java/org/apache/jorphan/test/JMeterSerialTest.java
index efa50e1..1fe645f 100644
--- a/src/core/src/test/java/org/apache/jorphan/test/JMeterSerialTest.java
+++ b/src/core/src/test/java/org/apache/jorphan/test/JMeterSerialTest.java
@@ -17,9 +17,13 @@
package org.apache.jorphan.test;
+import org.junit.jupiter.api.parallel.Execution;
+import org.junit.jupiter.api.parallel.ExecutionMode;
+
/**
* Used to tag tests which need to be run on their own (in serial) because
* either, they cause other tests to fail, or they fail when run in parallel.
*/
+@Execution(ExecutionMode.SAME_THREAD)
public interface JMeterSerialTest {
}