Skip to content

Commit 8bb78c5

Browse files
committed
AbstractTestEnvironment: context cannot be static
One should be created per test instance. This is more friendly for multiple threads. (Although in counterpoint: "mvn -T 8 test" works without this change.)
1 parent 2de39c7 commit 8bb78c5

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/test/java/org/scijava/ops/AbstractTestEnvironment.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,8 @@
88

99
public abstract class AbstractTestEnvironment {
1010

11-
private static Context context;
12-
private static OpService ops;
11+
private Context context;
12+
private OpService ops;
1313

1414
@Before
1515
public void setUp() {
@@ -24,7 +24,7 @@ public void tearDown() {
2424
ops = null;
2525
}
2626

27-
public static OpService ops() {
27+
public OpService ops() {
2828
return ops;
2929
}
3030

0 commit comments

Comments
 (0)