File tree Expand file tree Collapse file tree 1 file changed +2
-4
lines changed
activejdbc/src/test/java/org/javalite/activejdbc Expand file tree Collapse file tree 1 file changed +2
-4
lines changed Original file line number Diff line number Diff line change 7
7
import java .util .concurrent .ConcurrentLinkedQueue ;
8
8
9
9
import static org .javalite .activejdbc .test .JdbcProperties .*;
10
- import static org .javalite .test .jspec .JSpec .a ;
11
10
12
11
/**
13
12
* @author Igor Polevoy: 4/4/12 2:40 PM
14
13
*/
15
14
public class RaceConditionTest extends ActiveJDBCTest {
16
15
17
16
@ Test
17
+ //TODO: what is test testing?
18
18
public void shouldNotGetRaceCondition () throws InterruptedException {
19
19
20
20
final ConcurrentLinkedQueue <Integer > queue = new ConcurrentLinkedQueue <Integer >();
@@ -34,9 +34,7 @@ public void run() {
34
34
new Thread (r ).start ();
35
35
}
36
36
37
-
38
- Thread .sleep (2000 );
39
-
37
+ Thread .sleep (5000 );
40
38
41
39
a (queue .size ()).shouldEqual (10 );
42
40
}
You can’t perform that action at this time.
0 commit comments