Skip to content

Commit

Permalink
Fixed E2E non blocking checkout test to actually check for non-blocki…
Browse files Browse the repository at this point in the history
…ng checkouts. (Addresses review feedback from Chinmay Soman.)
  • Loading branch information
jayjwylie committed Oct 9, 2012
1 parent 4e6e8b4 commit e372717
Showing 1 changed file with 4 additions and 12 deletions.
Expand Up @@ -244,26 +244,18 @@ public void run() {
+ Thread.currentThread().getName() + ")");
System.out.println("START " + context);
long startTimeMs = System.currentTimeMillis();
boolean putDone = false;
while(!putDone) {
try {
storeClient.put(I, I);
putDone = true;
} catch(ObsoleteVersionException e) {
System.out.println("RETRY " + context);
// What to do here?
}
try {
storeClient.put(I, I);
} catch(ObsoleteVersionException e) {
System.out.println("ObsoleteVersionException caught on put." + context);
}
long endTimeMs = System.currentTimeMillis();
System.out.println(" DONE " + context + " --- Time (ms): "
+ (endTimeMs - startTimeMs));
if(i >= NUM_EXEMPT_PUTS) {
/*-
assertFalse("Operation completes without blocking on slow server:"
+ (endTimeMs - startTimeMs),
(endTimeMs - startTimeMs) > this.putTimeLimitMs);
*/
assertFalse("False", false); // noop until fix
if((endTimeMs - startTimeMs) > this.putTimeLimitMs) {
System.err.println("Operation blocked! Therefore, operation is not nonblocking... "
+ context
Expand Down

0 comments on commit e372717

Please sign in to comment.