Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

JBTM-1292 Add delay for all XTS ParticipantCompletion tests

  • Loading branch information...
commit 96ced73029abe9ff92984e79fcfd87e1288c0d7c 1 parent 0f280ee
@paulrobinson paulrobinson authored
View
2  XTS/WSTX/tests/classes/com/arjuna/wst11/tests/junit/ba/Close.java
@@ -68,6 +68,8 @@ public void testClose()
throw eouter;
}
+ //[JBTM-1292]
+ Thread.sleep(3*1000);
uba.close();
assertTrue(p.passed());
View
2  XTS/WSTX/tests/classes/com/arjuna/wst11/tests/junit/ba/Compensate.java
@@ -70,6 +70,8 @@ public void testCompensate()
throw eouter;
}
+ //[JBTM-1292]
+ Thread.sleep(3*1000);
uba.cancel();
assertTrue(p.passed());
View
2  XTS/WSTX/tests/classes/com/arjuna/wst11/tests/junit/ba/Exit.java
@@ -69,6 +69,8 @@ public void testExit()
throw eouter;
}
+ //[JBTM-1292]
+ Thread.sleep(3*1000);
uba.close();
assertTrue(p.passed());
View
2  XTS/WSTX/tests/classes/com/arjuna/wst11/tests/junit/ba/MultiClose.java
@@ -75,6 +75,8 @@ public void testMultiClose()
throw eouter;
}
// the close should succeed even though the participant fails
+ //[JBTM-1292]
+ Thread.sleep(3*1000);
uba.close();
assertTrue(p.passed());
}
View
12 XTS/localjunit/WSTX/src/main/java/com/arjuna/wst11/tests/arq/ba/Close.java
@@ -67,16 +67,8 @@ public void testClose()
throw eouter;
}
- //[JBTM-1202]
- //the asynchronous call to bpm.completed() is taking too long
- //and then uba.close() is invoked before the coordinator has received word
- //that the participant has completed.
- //As the participant is not competed, the coordinator will cancel the participant
- //and the UBA will throw a TransactionRolledBackException
- //
- //we add delay 10s before uba.close() to give the participant time to complete.
- //It's a hack and not guaranteed to work.
- Thread.sleep(10*1000);
+ //[JBTM-1292]
+ Thread.sleep(3*1000);
uba.close();
assertTrue(p.passed());
View
2  XTS/localjunit/WSTX/src/main/java/com/arjuna/wst11/tests/arq/ba/Exit.java
@@ -68,6 +68,8 @@ public void testExit()
throw eouter;
}
+ //[JBTM-1292]
+ Thread.sleep(3*1000);
uba.close();
assertTrue(p.passed());
View
3  XTS/localjunit/WSTX/src/main/java/com/arjuna/wst11/tests/arq/ba/MultiClose.java
@@ -73,7 +73,8 @@ public void testMultiClose()
}
throw eouter;
}
- // the close should succeed even though the participant fails
+ //[JBTM-1292]
+ Thread.sleep(3*1000);
uba.close();
assertTrue(p.passed());
}
Please sign in to comment.
Something went wrong with that request. Please try again.