Mercurial > hg > graal-compiler
comparison graal/com.oracle.truffle.api.test/src/com/oracle/truffle/api/test/ThreadSafetyTest.java @ 14879:69375786ef70
ThreadSafetyTest: increase timeout and check test termination with assertion
author | Andreas Woess <andreas.woess@jku.at> |
---|---|
date | Fri, 28 Mar 2014 17:55:46 +0100 |
parents | ba52fbec5b6c |
children | 64dcb92ee75a |
comparison
equal
deleted
inserted
replaced
14878:d786bfc78196 | 14879:69375786ef70 |
---|---|
73 } | 73 } |
74 } | 74 } |
75 }); | 75 }); |
76 } | 76 } |
77 executorService.shutdown(); | 77 executorService.shutdown(); |
78 executorService.awaitTermination(30, TimeUnit.SECONDS); | 78 executorService.awaitTermination(90, TimeUnit.SECONDS); |
79 assertTrue("test did not terminate", executorService.isTerminated()); | |
79 assertEquals(numberOfIterations, ai.get()); | 80 assertEquals(numberOfIterations, ai.get()); |
80 } | 81 } |
81 | 82 |
82 static class TestArguments extends Arguments { | 83 static class TestArguments extends Arguments { |
83 final int arg; | 84 final int arg; |