Revision 26029 branches/v2_0_0_prep/libraries/libFMap_dalfile/src-test/org/gvsig/fmap/dal/store/dbf/testediting/EditStore.java

View differences:

EditStore.java
106 106
			if (timeToWait == TIME_TO_WAIT_RANDOM) {
107 107
				Random rnd = new Random();
108 108
				rnd.setSeed(System.currentTimeMillis());
109
				finalTimeToWait = rnd.nextInt(200) + 1;
109
				finalTimeToWait = rnd.nextInt(200) + 4;
110 110

  
111 111
			} else {
112 112
				finalTimeToWait = timeToWait;
113 113
			}
114 114
			try {
115
				sleep(finalTimeToWait);
115
				for (int x = 0; x < 4; x++) {
116
					yield();
117
					sleep(finalTimeToWait / 4);
118
				}
116 119
			} catch (InterruptedException e) {
117 120
				this.curStatus = STATUS_FINISHED_ERROR;
118 121
				this.exception = e;

Also available in: Unified diff