Skip to content

Commit

Permalink
wait for Rubi context to be initialized in JUnit FileFunctionsTest
Browse files Browse the repository at this point in the history
  • Loading branch information
axkr committed Nov 10, 2024
1 parent 5b8c4bb commit dfeb0b6
Showing 1 changed file with 17 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,26 @@

import org.junit.Test;
import org.matheclipse.core.basic.Config;
import org.matheclipse.core.expression.F;
import org.matheclipse.core.expression.S;

public class FileFunctionsTest extends ExprEvaluatorTestCase {

@Override
public void setUp() {
super.setUp();
try {
F.initSymbols();
F.await();
// wait especially for Rubi` context to be initialized otherwise
// java.util.ConcurrentModificationException can occur in saving Global` context in
// testSaveGlobalContext()
S.Integrate.getEvaluator().await();
} catch (InterruptedException e) {
e.printStackTrace();
}
}

@Test
public void testSave() {
Config.FILESYSTEM_ENABLED = true;
Expand Down

0 comments on commit dfeb0b6

Please sign in to comment.