Skip to content

Commit

Permalink
Merge pull request mvel#216 from MalcolmOdd/Issue215
Browse files Browse the repository at this point in the history
Issue215 DebuggerTests fails sporadically
  • Loading branch information
mariofusco authored Feb 27, 2020
2 parents 864598f + 8f75b54 commit 95b3d05
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions src/test/java/org/mvel2/tests/core/DebuggerTests.java
Original file line number Diff line number Diff line change
Expand Up @@ -33,11 +33,16 @@ public class DebuggerTests extends AbstractTest {
private static int count;
private static int a1 = 0;
private static int a4 = 0;

@Override
protected void setUp() throws Exception {
super.setUp();
MVELRuntime.resetDebugger();
}

public void testDebuggerInvoke() {
count = 0;

MVELRuntime.resetDebugger();
MVELRuntime.setThreadDebugger(new Debugger() {
public int onBreak(Frame frame) {
if (frame.getFactory().isResolveable("a1")) {
Expand Down Expand Up @@ -79,7 +84,6 @@ public int onBreak(Frame frame) {
public void testDebuggerInvoke2() {
count = 0;

MVELRuntime.resetDebugger();
MVELRuntime.setThreadDebugger(new Debugger() {
public int onBreak(Frame frame) {
count++;
Expand Down

0 comments on commit 95b3d05

Please sign in to comment.