HADOOP-14377. Increase Common test timeouts from 1 second to 10 seconds. Contributed by Eric Badger
(cherry picked from commit f7faac8e90
)
Conflicts:
hadoop-common-project/hadoop-common/src/test/java/org/apache/hadoop/fs/TestGlobPattern.java
hadoop-common-project/hadoop-common/src/test/java/org/apache/hadoop/security/TestUserGroupInformation.java
This commit is contained in:
parent
486a160735
commit
f9ba4ef7d5
|
@ -88,28 +88,28 @@ public class TestCryptoStreamsForLocalFS extends CryptoStreamsTestBase {
|
||||||
|
|
||||||
@Ignore("ChecksumFSInputChecker doesn't support ByteBuffer read")
|
@Ignore("ChecksumFSInputChecker doesn't support ByteBuffer read")
|
||||||
@Override
|
@Override
|
||||||
@Test(timeout=1000)
|
@Test(timeout=10000)
|
||||||
public void testByteBufferRead() throws Exception {}
|
public void testByteBufferRead() throws Exception {}
|
||||||
|
|
||||||
@Ignore("ChecksumFSOutputSummer doesn't support Syncable")
|
@Ignore("ChecksumFSOutputSummer doesn't support Syncable")
|
||||||
@Override
|
@Override
|
||||||
@Test(timeout=1000)
|
@Test(timeout=10000)
|
||||||
public void testSyncable() throws IOException {}
|
public void testSyncable() throws IOException {}
|
||||||
|
|
||||||
@Ignore("ChecksumFSInputChecker doesn't support ByteBuffer read")
|
@Ignore("ChecksumFSInputChecker doesn't support ByteBuffer read")
|
||||||
@Override
|
@Override
|
||||||
@Test(timeout=1000)
|
@Test(timeout=10000)
|
||||||
public void testCombinedOp() throws Exception {}
|
public void testCombinedOp() throws Exception {}
|
||||||
|
|
||||||
@Ignore("ChecksumFSInputChecker doesn't support enhanced ByteBuffer access")
|
@Ignore("ChecksumFSInputChecker doesn't support enhanced ByteBuffer access")
|
||||||
@Override
|
@Override
|
||||||
@Test(timeout=1000)
|
@Test(timeout=10000)
|
||||||
public void testHasEnhancedByteBufferAccess() throws Exception {
|
public void testHasEnhancedByteBufferAccess() throws Exception {
|
||||||
}
|
}
|
||||||
|
|
||||||
@Ignore("ChecksumFSInputChecker doesn't support seekToNewSource")
|
@Ignore("ChecksumFSInputChecker doesn't support seekToNewSource")
|
||||||
@Override
|
@Override
|
||||||
@Test(timeout=1000)
|
@Test(timeout=10000)
|
||||||
public void testSeekToNewSource() throws Exception {
|
public void testSeekToNewSource() throws Exception {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -83,41 +83,41 @@ public class TestCryptoStreamsNormal extends CryptoStreamsTestBase {
|
||||||
|
|
||||||
@Ignore("Wrapped stream doesn't support Syncable")
|
@Ignore("Wrapped stream doesn't support Syncable")
|
||||||
@Override
|
@Override
|
||||||
@Test(timeout=1000)
|
@Test(timeout=10000)
|
||||||
public void testSyncable() throws IOException {}
|
public void testSyncable() throws IOException {}
|
||||||
|
|
||||||
@Ignore("Wrapped stream doesn't support PositionedRead")
|
@Ignore("Wrapped stream doesn't support PositionedRead")
|
||||||
@Override
|
@Override
|
||||||
@Test(timeout=1000)
|
@Test(timeout=10000)
|
||||||
public void testPositionedRead() throws IOException {}
|
public void testPositionedRead() throws IOException {}
|
||||||
|
|
||||||
@Ignore("Wrapped stream doesn't support ReadFully")
|
@Ignore("Wrapped stream doesn't support ReadFully")
|
||||||
@Override
|
@Override
|
||||||
@Test(timeout=1000)
|
@Test(timeout=10000)
|
||||||
public void testReadFully() throws IOException {}
|
public void testReadFully() throws IOException {}
|
||||||
|
|
||||||
@Ignore("Wrapped stream doesn't support Seek")
|
@Ignore("Wrapped stream doesn't support Seek")
|
||||||
@Override
|
@Override
|
||||||
@Test(timeout=1000)
|
@Test(timeout=10000)
|
||||||
public void testSeek() throws IOException {}
|
public void testSeek() throws IOException {}
|
||||||
|
|
||||||
@Ignore("Wrapped stream doesn't support ByteBufferRead")
|
@Ignore("Wrapped stream doesn't support ByteBufferRead")
|
||||||
@Override
|
@Override
|
||||||
@Test(timeout=1000)
|
@Test(timeout=10000)
|
||||||
public void testByteBufferRead() throws IOException {}
|
public void testByteBufferRead() throws IOException {}
|
||||||
|
|
||||||
@Ignore("Wrapped stream doesn't support ByteBufferRead, Seek")
|
@Ignore("Wrapped stream doesn't support ByteBufferRead, Seek")
|
||||||
@Override
|
@Override
|
||||||
@Test(timeout=1000)
|
@Test(timeout=10000)
|
||||||
public void testCombinedOp() throws IOException {}
|
public void testCombinedOp() throws IOException {}
|
||||||
|
|
||||||
@Ignore("Wrapped stream doesn't support SeekToNewSource")
|
@Ignore("Wrapped stream doesn't support SeekToNewSource")
|
||||||
@Override
|
@Override
|
||||||
@Test(timeout=1000)
|
@Test(timeout=10000)
|
||||||
public void testSeekToNewSource() throws IOException {}
|
public void testSeekToNewSource() throws IOException {}
|
||||||
|
|
||||||
@Ignore("Wrapped stream doesn't support HasEnhancedByteBufferAccess")
|
@Ignore("Wrapped stream doesn't support HasEnhancedByteBufferAccess")
|
||||||
@Override
|
@Override
|
||||||
@Test(timeout=1000)
|
@Test(timeout=10000)
|
||||||
public void testHasEnhancedByteBufferAccess() throws IOException {}
|
public void testHasEnhancedByteBufferAccess() throws IOException {}
|
||||||
}
|
}
|
||||||
|
|
|
@ -42,24 +42,24 @@ public class TestSymlinkLocalFSFileSystem extends TestSymlinkLocalFS {
|
||||||
@Ignore("RawLocalFileSystem#mkdir does not treat existence of directory" +
|
@Ignore("RawLocalFileSystem#mkdir does not treat existence of directory" +
|
||||||
" as an error")
|
" as an error")
|
||||||
@Override
|
@Override
|
||||||
@Test(timeout=1000)
|
@Test(timeout=10000)
|
||||||
public void testMkdirExistingLink() throws IOException {}
|
public void testMkdirExistingLink() throws IOException {}
|
||||||
|
|
||||||
@Ignore("FileSystem#create defaults to creating parents," +
|
@Ignore("FileSystem#create defaults to creating parents," +
|
||||||
" throwing an IOException instead of FileNotFoundException")
|
" throwing an IOException instead of FileNotFoundException")
|
||||||
@Override
|
@Override
|
||||||
@Test(timeout=1000)
|
@Test(timeout=10000)
|
||||||
public void testCreateFileViaDanglingLinkParent() throws IOException {}
|
public void testCreateFileViaDanglingLinkParent() throws IOException {}
|
||||||
|
|
||||||
@Ignore("RawLocalFileSystem does not throw an exception if the path" +
|
@Ignore("RawLocalFileSystem does not throw an exception if the path" +
|
||||||
" already exists")
|
" already exists")
|
||||||
@Override
|
@Override
|
||||||
@Test(timeout=1000)
|
@Test(timeout=10000)
|
||||||
public void testCreateFileDirExistingLink() throws IOException {}
|
public void testCreateFileDirExistingLink() throws IOException {}
|
||||||
|
|
||||||
@Ignore("ChecksumFileSystem does not support append")
|
@Ignore("ChecksumFileSystem does not support append")
|
||||||
@Override
|
@Override
|
||||||
@Test(timeout=1000)
|
@Test(timeout=10000)
|
||||||
public void testAccessFileViaInterSymlinkAbsTarget() throws IOException {}
|
public void testAccessFileViaInterSymlinkAbsTarget() throws IOException {}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
|
|
@ -165,7 +165,7 @@ public class TestSortedMapWritable {
|
||||||
assertTrue(failureReason, !mapB.equals(mapA));
|
assertTrue(failureReason, !mapB.equals(mapA));
|
||||||
}
|
}
|
||||||
|
|
||||||
@Test(timeout = 1000)
|
@Test(timeout = 10000)
|
||||||
public void testPutAll() {
|
public void testPutAll() {
|
||||||
SortedMapWritable map1 = new SortedMapWritable();
|
SortedMapWritable map1 = new SortedMapWritable();
|
||||||
SortedMapWritable map2 = new SortedMapWritable();
|
SortedMapWritable map2 = new SortedMapWritable();
|
||||||
|
|
|
@ -43,7 +43,7 @@ public class TestCodecPool {
|
||||||
this.codec.setConf(new Configuration());
|
this.codec.setConf(new Configuration());
|
||||||
}
|
}
|
||||||
|
|
||||||
@Test(timeout = 1000)
|
@Test(timeout = 10000)
|
||||||
public void testCompressorPoolCounts() {
|
public void testCompressorPoolCounts() {
|
||||||
// Get two compressors and return them
|
// Get two compressors and return them
|
||||||
Compressor comp1 = CodecPool.getCompressor(codec);
|
Compressor comp1 = CodecPool.getCompressor(codec);
|
||||||
|
@ -64,7 +64,7 @@ public class TestCodecPool {
|
||||||
CodecPool.getLeasedCompressorsCount(codec));
|
CodecPool.getLeasedCompressorsCount(codec));
|
||||||
}
|
}
|
||||||
|
|
||||||
@Test(timeout = 1000)
|
@Test(timeout = 10000)
|
||||||
public void testCompressorNotReturnSameInstance() {
|
public void testCompressorNotReturnSameInstance() {
|
||||||
Compressor comp = CodecPool.getCompressor(codec);
|
Compressor comp = CodecPool.getCompressor(codec);
|
||||||
CodecPool.returnCompressor(comp);
|
CodecPool.returnCompressor(comp);
|
||||||
|
@ -79,7 +79,7 @@ public class TestCodecPool {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@Test(timeout = 1000)
|
@Test(timeout = 10000)
|
||||||
public void testDecompressorPoolCounts() {
|
public void testDecompressorPoolCounts() {
|
||||||
// Get two decompressors and return them
|
// Get two decompressors and return them
|
||||||
Decompressor decomp1 = CodecPool.getDecompressor(codec);
|
Decompressor decomp1 = CodecPool.getDecompressor(codec);
|
||||||
|
@ -100,7 +100,7 @@ public class TestCodecPool {
|
||||||
CodecPool.getLeasedCompressorsCount(codec));
|
CodecPool.getLeasedCompressorsCount(codec));
|
||||||
}
|
}
|
||||||
|
|
||||||
@Test(timeout = 1000)
|
@Test(timeout = 10000)
|
||||||
public void testMultiThreadedCompressorPool() throws InterruptedException {
|
public void testMultiThreadedCompressorPool() throws InterruptedException {
|
||||||
final int iterations = 4;
|
final int iterations = 4;
|
||||||
ExecutorService threadpool = Executors.newFixedThreadPool(3);
|
ExecutorService threadpool = Executors.newFixedThreadPool(3);
|
||||||
|
@ -137,7 +137,7 @@ public class TestCodecPool {
|
||||||
assertEquals(LEASE_COUNT_ERR, 0, CodecPool.getLeasedCompressorsCount(codec));
|
assertEquals(LEASE_COUNT_ERR, 0, CodecPool.getLeasedCompressorsCount(codec));
|
||||||
}
|
}
|
||||||
|
|
||||||
@Test(timeout = 1000)
|
@Test(timeout = 10000)
|
||||||
public void testMultiThreadedDecompressorPool() throws InterruptedException {
|
public void testMultiThreadedDecompressorPool() throws InterruptedException {
|
||||||
final int iterations = 4;
|
final int iterations = 4;
|
||||||
ExecutorService threadpool = Executors.newFixedThreadPool(3);
|
ExecutorService threadpool = Executors.newFixedThreadPool(3);
|
||||||
|
@ -175,7 +175,7 @@ public class TestCodecPool {
|
||||||
CodecPool.getLeasedDecompressorsCount(codec));
|
CodecPool.getLeasedDecompressorsCount(codec));
|
||||||
}
|
}
|
||||||
|
|
||||||
@Test(timeout = 1000)
|
@Test(timeout = 10000)
|
||||||
public void testDecompressorNotReturnSameInstance() {
|
public void testDecompressorNotReturnSameInstance() {
|
||||||
Decompressor decomp = CodecPool.getDecompressor(codec);
|
Decompressor decomp = CodecPool.getDecompressor(codec);
|
||||||
CodecPool.returnDecompressor(decomp);
|
CodecPool.returnDecompressor(decomp);
|
||||||
|
|
|
@ -824,7 +824,7 @@ public class TestUserGroupInformation {
|
||||||
assertEquals("guest@DEFAULT.REALM", ugi.getUserName());
|
assertEquals("guest@DEFAULT.REALM", ugi.getUserName());
|
||||||
}
|
}
|
||||||
|
|
||||||
@Test(timeout=1000)
|
@Test(timeout=10000)
|
||||||
public void testSetLoginUser() throws IOException {
|
public void testSetLoginUser() throws IOException {
|
||||||
UserGroupInformation ugi = UserGroupInformation.createRemoteUser("test-user");
|
UserGroupInformation ugi = UserGroupInformation.createRemoteUser("test-user");
|
||||||
UserGroupInformation.setLoginUser(ugi);
|
UserGroupInformation.setLoginUser(ugi);
|
||||||
|
|
|
@ -312,7 +312,7 @@ public class TestCompositeService {
|
||||||
assertInState(STATE.INITED, child);
|
assertInState(STATE.INITED, child);
|
||||||
}
|
}
|
||||||
|
|
||||||
@Test (timeout = 1000)
|
@Test (timeout = 10000)
|
||||||
public void testAddIfService() {
|
public void testAddIfService() {
|
||||||
CompositeService testService = new CompositeService("TestService") {
|
CompositeService testService = new CompositeService("TestService") {
|
||||||
Service service;
|
Service service;
|
||||||
|
@ -363,7 +363,7 @@ public class TestCompositeService {
|
||||||
// Tests for adding child service to parent
|
// Tests for adding child service to parent
|
||||||
//
|
//
|
||||||
|
|
||||||
@Test(timeout = 1000)
|
@Test(timeout = 10000)
|
||||||
public void testAddUninitedChildBeforeInit() throws Throwable {
|
public void testAddUninitedChildBeforeInit() throws Throwable {
|
||||||
CompositeService parent = new CompositeService("parent");
|
CompositeService parent = new CompositeService("parent");
|
||||||
BreakableService child = new BreakableService();
|
BreakableService child = new BreakableService();
|
||||||
|
@ -376,7 +376,7 @@ public class TestCompositeService {
|
||||||
assertInState(STATE.STOPPED, child);
|
assertInState(STATE.STOPPED, child);
|
||||||
}
|
}
|
||||||
|
|
||||||
@Test(timeout = 1000)
|
@Test(timeout = 10000)
|
||||||
public void testAddUninitedChildInInit() throws Throwable {
|
public void testAddUninitedChildInInit() throws Throwable {
|
||||||
CompositeService parent = new CompositeService("parent");
|
CompositeService parent = new CompositeService("parent");
|
||||||
BreakableService child = new BreakableService();
|
BreakableService child = new BreakableService();
|
||||||
|
@ -396,7 +396,7 @@ public class TestCompositeService {
|
||||||
1, parent.getServices().size());
|
1, parent.getServices().size());
|
||||||
}
|
}
|
||||||
|
|
||||||
@Test(timeout = 1000)
|
@Test(timeout = 10000)
|
||||||
public void testAddUninitedChildInStart() throws Throwable {
|
public void testAddUninitedChildInStart() throws Throwable {
|
||||||
CompositeService parent = new CompositeService("parent");
|
CompositeService parent = new CompositeService("parent");
|
||||||
BreakableService child = new BreakableService();
|
BreakableService child = new BreakableService();
|
||||||
|
@ -408,7 +408,7 @@ public class TestCompositeService {
|
||||||
assertInState(STATE.NOTINITED, child);
|
assertInState(STATE.NOTINITED, child);
|
||||||
}
|
}
|
||||||
|
|
||||||
@Test(timeout = 1000)
|
@Test(timeout = 10000)
|
||||||
public void testAddUninitedChildInStop() throws Throwable {
|
public void testAddUninitedChildInStop() throws Throwable {
|
||||||
CompositeService parent = new CompositeService("parent");
|
CompositeService parent = new CompositeService("parent");
|
||||||
BreakableService child = new BreakableService();
|
BreakableService child = new BreakableService();
|
||||||
|
@ -419,7 +419,7 @@ public class TestCompositeService {
|
||||||
assertInState(STATE.NOTINITED, child);
|
assertInState(STATE.NOTINITED, child);
|
||||||
}
|
}
|
||||||
|
|
||||||
@Test(timeout = 1000)
|
@Test(timeout = 10000)
|
||||||
public void testAddInitedChildBeforeInit() throws Throwable {
|
public void testAddInitedChildBeforeInit() throws Throwable {
|
||||||
CompositeService parent = new CompositeService("parent");
|
CompositeService parent = new CompositeService("parent");
|
||||||
BreakableService child = new BreakableService();
|
BreakableService child = new BreakableService();
|
||||||
|
@ -433,7 +433,7 @@ public class TestCompositeService {
|
||||||
assertInState(STATE.STOPPED, child);
|
assertInState(STATE.STOPPED, child);
|
||||||
}
|
}
|
||||||
|
|
||||||
@Test(timeout = 1000)
|
@Test(timeout = 10000)
|
||||||
public void testAddInitedChildInInit() throws Throwable {
|
public void testAddInitedChildInInit() throws Throwable {
|
||||||
CompositeService parent = new CompositeService("parent");
|
CompositeService parent = new CompositeService("parent");
|
||||||
BreakableService child = new BreakableService();
|
BreakableService child = new BreakableService();
|
||||||
|
@ -446,7 +446,7 @@ public class TestCompositeService {
|
||||||
assertInState(STATE.STOPPED, child);
|
assertInState(STATE.STOPPED, child);
|
||||||
}
|
}
|
||||||
|
|
||||||
@Test(timeout = 1000)
|
@Test(timeout = 10000)
|
||||||
public void testAddInitedChildInStart() throws Throwable {
|
public void testAddInitedChildInStart() throws Throwable {
|
||||||
CompositeService parent = new CompositeService("parent");
|
CompositeService parent = new CompositeService("parent");
|
||||||
BreakableService child = new BreakableService();
|
BreakableService child = new BreakableService();
|
||||||
|
@ -459,7 +459,7 @@ public class TestCompositeService {
|
||||||
assertInState(STATE.STOPPED, child);
|
assertInState(STATE.STOPPED, child);
|
||||||
}
|
}
|
||||||
|
|
||||||
@Test(timeout = 1000)
|
@Test(timeout = 10000)
|
||||||
public void testAddInitedChildInStop() throws Throwable {
|
public void testAddInitedChildInStop() throws Throwable {
|
||||||
CompositeService parent = new CompositeService("parent");
|
CompositeService parent = new CompositeService("parent");
|
||||||
BreakableService child = new BreakableService();
|
BreakableService child = new BreakableService();
|
||||||
|
@ -471,7 +471,7 @@ public class TestCompositeService {
|
||||||
assertInState(STATE.INITED, child);
|
assertInState(STATE.INITED, child);
|
||||||
}
|
}
|
||||||
|
|
||||||
@Test(timeout = 1000)
|
@Test(timeout = 10000)
|
||||||
public void testAddStartedChildBeforeInit() throws Throwable {
|
public void testAddStartedChildBeforeInit() throws Throwable {
|
||||||
CompositeService parent = new CompositeService("parent");
|
CompositeService parent = new CompositeService("parent");
|
||||||
BreakableService child = new BreakableService();
|
BreakableService child = new BreakableService();
|
||||||
|
@ -489,7 +489,7 @@ public class TestCompositeService {
|
||||||
1, parent.getServices().size());
|
1, parent.getServices().size());
|
||||||
}
|
}
|
||||||
|
|
||||||
@Test(timeout = 1000)
|
@Test(timeout = 10000)
|
||||||
public void testAddStartedChildInInit() throws Throwable {
|
public void testAddStartedChildInInit() throws Throwable {
|
||||||
CompositeService parent = new CompositeService("parent");
|
CompositeService parent = new CompositeService("parent");
|
||||||
BreakableService child = new BreakableService();
|
BreakableService child = new BreakableService();
|
||||||
|
@ -503,7 +503,7 @@ public class TestCompositeService {
|
||||||
assertInState(STATE.STOPPED, child);
|
assertInState(STATE.STOPPED, child);
|
||||||
}
|
}
|
||||||
|
|
||||||
@Test(timeout = 1000)
|
@Test(timeout = 10000)
|
||||||
public void testAddStartedChildInStart() throws Throwable {
|
public void testAddStartedChildInStart() throws Throwable {
|
||||||
CompositeService parent = new CompositeService("parent");
|
CompositeService parent = new CompositeService("parent");
|
||||||
BreakableService child = new BreakableService();
|
BreakableService child = new BreakableService();
|
||||||
|
@ -517,7 +517,7 @@ public class TestCompositeService {
|
||||||
assertInState(STATE.STOPPED, child);
|
assertInState(STATE.STOPPED, child);
|
||||||
}
|
}
|
||||||
|
|
||||||
@Test(timeout = 1000)
|
@Test(timeout = 10000)
|
||||||
public void testAddStartedChildInStop() throws Throwable {
|
public void testAddStartedChildInStop() throws Throwable {
|
||||||
CompositeService parent = new CompositeService("parent");
|
CompositeService parent = new CompositeService("parent");
|
||||||
BreakableService child = new BreakableService();
|
BreakableService child = new BreakableService();
|
||||||
|
@ -530,7 +530,7 @@ public class TestCompositeService {
|
||||||
assertInState(STATE.STARTED, child);
|
assertInState(STATE.STARTED, child);
|
||||||
}
|
}
|
||||||
|
|
||||||
@Test(timeout = 1000)
|
@Test(timeout = 10000)
|
||||||
public void testAddStoppedChildBeforeInit() throws Throwable {
|
public void testAddStoppedChildBeforeInit() throws Throwable {
|
||||||
CompositeService parent = new CompositeService("parent");
|
CompositeService parent = new CompositeService("parent");
|
||||||
BreakableService child = new BreakableService();
|
BreakableService child = new BreakableService();
|
||||||
|
@ -549,7 +549,7 @@ public class TestCompositeService {
|
||||||
1, parent.getServices().size());
|
1, parent.getServices().size());
|
||||||
}
|
}
|
||||||
|
|
||||||
@Test(timeout = 1000)
|
@Test(timeout = 10000)
|
||||||
public void testAddStoppedChildInInit() throws Throwable {
|
public void testAddStoppedChildInInit() throws Throwable {
|
||||||
CompositeService parent = new CompositeService("parent");
|
CompositeService parent = new CompositeService("parent");
|
||||||
BreakableService child = new BreakableService();
|
BreakableService child = new BreakableService();
|
||||||
|
@ -570,7 +570,7 @@ public class TestCompositeService {
|
||||||
1, parent.getServices().size());
|
1, parent.getServices().size());
|
||||||
}
|
}
|
||||||
|
|
||||||
@Test(timeout = 1000)
|
@Test(timeout = 10000)
|
||||||
public void testAddStoppedChildInStart() throws Throwable {
|
public void testAddStoppedChildInStart() throws Throwable {
|
||||||
CompositeService parent = new CompositeService("parent");
|
CompositeService parent = new CompositeService("parent");
|
||||||
BreakableService child = new BreakableService();
|
BreakableService child = new BreakableService();
|
||||||
|
@ -583,7 +583,7 @@ public class TestCompositeService {
|
||||||
parent.stop();
|
parent.stop();
|
||||||
}
|
}
|
||||||
|
|
||||||
@Test(timeout = 1000)
|
@Test(timeout = 10000)
|
||||||
public void testAddStoppedChildInStop() throws Throwable {
|
public void testAddStoppedChildInStop() throws Throwable {
|
||||||
CompositeService parent = new CompositeService("parent");
|
CompositeService parent = new CompositeService("parent");
|
||||||
BreakableService child = new BreakableService();
|
BreakableService child = new BreakableService();
|
||||||
|
@ -600,7 +600,7 @@ public class TestCompositeService {
|
||||||
// Tests for adding sibling service to parent
|
// Tests for adding sibling service to parent
|
||||||
//
|
//
|
||||||
|
|
||||||
@Test(timeout = 1000)
|
@Test(timeout = 10000)
|
||||||
public void testAddUninitedSiblingBeforeInit() throws Throwable {
|
public void testAddUninitedSiblingBeforeInit() throws Throwable {
|
||||||
CompositeService parent = new CompositeService("parent");
|
CompositeService parent = new CompositeService("parent");
|
||||||
BreakableService sibling = new BreakableService();
|
BreakableService sibling = new BreakableService();
|
||||||
|
@ -617,7 +617,7 @@ public class TestCompositeService {
|
||||||
1, parent.getServices().size());
|
1, parent.getServices().size());
|
||||||
}
|
}
|
||||||
|
|
||||||
@Test(timeout = 1000)
|
@Test(timeout = 10000)
|
||||||
public void testAddUninitedSiblingInInit() throws Throwable {
|
public void testAddUninitedSiblingInInit() throws Throwable {
|
||||||
CompositeService parent = new CompositeService("parent");
|
CompositeService parent = new CompositeService("parent");
|
||||||
BreakableService sibling = new BreakableService();
|
BreakableService sibling = new BreakableService();
|
||||||
|
@ -636,7 +636,7 @@ public class TestCompositeService {
|
||||||
2, parent.getServices().size());
|
2, parent.getServices().size());
|
||||||
}
|
}
|
||||||
|
|
||||||
@Test(timeout = 1000)
|
@Test(timeout = 10000)
|
||||||
public void testAddUninitedSiblingInStart() throws Throwable {
|
public void testAddUninitedSiblingInStart() throws Throwable {
|
||||||
CompositeService parent = new CompositeService("parent");
|
CompositeService parent = new CompositeService("parent");
|
||||||
BreakableService sibling = new BreakableService();
|
BreakableService sibling = new BreakableService();
|
||||||
|
@ -653,7 +653,7 @@ public class TestCompositeService {
|
||||||
2, parent.getServices().size());
|
2, parent.getServices().size());
|
||||||
}
|
}
|
||||||
|
|
||||||
@Test(timeout = 1000)
|
@Test(timeout = 10000)
|
||||||
public void testAddUninitedSiblingInStop() throws Throwable {
|
public void testAddUninitedSiblingInStop() throws Throwable {
|
||||||
CompositeService parent = new CompositeService("parent");
|
CompositeService parent = new CompositeService("parent");
|
||||||
BreakableService sibling = new BreakableService();
|
BreakableService sibling = new BreakableService();
|
||||||
|
@ -670,7 +670,7 @@ public class TestCompositeService {
|
||||||
2, parent.getServices().size());
|
2, parent.getServices().size());
|
||||||
}
|
}
|
||||||
|
|
||||||
@Test(timeout = 1000)
|
@Test(timeout = 10000)
|
||||||
public void testAddInitedSiblingBeforeInit() throws Throwable {
|
public void testAddInitedSiblingBeforeInit() throws Throwable {
|
||||||
CompositeService parent = new CompositeService("parent");
|
CompositeService parent = new CompositeService("parent");
|
||||||
BreakableService sibling = new BreakableService();
|
BreakableService sibling = new BreakableService();
|
||||||
|
@ -688,7 +688,7 @@ public class TestCompositeService {
|
||||||
1, parent.getServices().size());
|
1, parent.getServices().size());
|
||||||
}
|
}
|
||||||
|
|
||||||
@Test(timeout = 1000)
|
@Test(timeout = 10000)
|
||||||
public void testAddInitedSiblingInInit() throws Throwable {
|
public void testAddInitedSiblingInInit() throws Throwable {
|
||||||
CompositeService parent = new CompositeService("parent");
|
CompositeService parent = new CompositeService("parent");
|
||||||
BreakableService sibling = new BreakableService();
|
BreakableService sibling = new BreakableService();
|
||||||
|
@ -706,7 +706,7 @@ public class TestCompositeService {
|
||||||
2, parent.getServices().size());
|
2, parent.getServices().size());
|
||||||
}
|
}
|
||||||
|
|
||||||
@Test(timeout = 1000)
|
@Test(timeout = 10000)
|
||||||
public void testAddInitedSiblingInStart() throws Throwable {
|
public void testAddInitedSiblingInStart() throws Throwable {
|
||||||
CompositeService parent = new CompositeService("parent");
|
CompositeService parent = new CompositeService("parent");
|
||||||
BreakableService sibling = new BreakableService();
|
BreakableService sibling = new BreakableService();
|
||||||
|
@ -724,7 +724,7 @@ public class TestCompositeService {
|
||||||
2, parent.getServices().size());
|
2, parent.getServices().size());
|
||||||
}
|
}
|
||||||
|
|
||||||
@Test(timeout = 1000)
|
@Test(timeout = 10000)
|
||||||
public void testAddInitedSiblingInStop() throws Throwable {
|
public void testAddInitedSiblingInStop() throws Throwable {
|
||||||
CompositeService parent = new CompositeService("parent");
|
CompositeService parent = new CompositeService("parent");
|
||||||
BreakableService sibling = new BreakableService();
|
BreakableService sibling = new BreakableService();
|
||||||
|
@ -735,7 +735,7 @@ public class TestCompositeService {
|
||||||
parent.init(new Configuration());
|
parent.init(new Configuration());
|
||||||
}
|
}
|
||||||
|
|
||||||
@Test(timeout = 1000)
|
@Test(timeout = 10000)
|
||||||
public void testAddStartedSiblingBeforeInit() throws Throwable {
|
public void testAddStartedSiblingBeforeInit() throws Throwable {
|
||||||
CompositeService parent = new CompositeService("parent");
|
CompositeService parent = new CompositeService("parent");
|
||||||
BreakableService sibling = new BreakableService();
|
BreakableService sibling = new BreakableService();
|
||||||
|
@ -754,7 +754,7 @@ public class TestCompositeService {
|
||||||
1, parent.getServices().size());
|
1, parent.getServices().size());
|
||||||
}
|
}
|
||||||
|
|
||||||
@Test(timeout = 1000)
|
@Test(timeout = 10000)
|
||||||
public void testAddStartedSiblingInInit() throws Throwable {
|
public void testAddStartedSiblingInInit() throws Throwable {
|
||||||
CompositeService parent = new CompositeService("parent");
|
CompositeService parent = new CompositeService("parent");
|
||||||
BreakableService sibling = new BreakableService();
|
BreakableService sibling = new BreakableService();
|
||||||
|
@ -774,7 +774,7 @@ public class TestCompositeService {
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@Test(timeout = 1000)
|
@Test(timeout = 10000)
|
||||||
public void testAddStartedSiblingInStart() throws Throwable {
|
public void testAddStartedSiblingInStart() throws Throwable {
|
||||||
CompositeService parent = new CompositeService("parent");
|
CompositeService parent = new CompositeService("parent");
|
||||||
BreakableService sibling = new BreakableService();
|
BreakableService sibling = new BreakableService();
|
||||||
|
@ -793,7 +793,7 @@ public class TestCompositeService {
|
||||||
2, parent.getServices().size());
|
2, parent.getServices().size());
|
||||||
}
|
}
|
||||||
|
|
||||||
@Test(timeout = 1000)
|
@Test(timeout = 10000)
|
||||||
public void testAddStartedSiblingInStop() throws Throwable {
|
public void testAddStartedSiblingInStop() throws Throwable {
|
||||||
CompositeService parent = new CompositeService("parent");
|
CompositeService parent = new CompositeService("parent");
|
||||||
BreakableService sibling = new BreakableService();
|
BreakableService sibling = new BreakableService();
|
||||||
|
@ -812,7 +812,7 @@ public class TestCompositeService {
|
||||||
2, parent.getServices().size());
|
2, parent.getServices().size());
|
||||||
}
|
}
|
||||||
|
|
||||||
@Test(timeout = 1000)
|
@Test(timeout = 10000)
|
||||||
public void testAddStoppedSiblingBeforeInit() throws Throwable {
|
public void testAddStoppedSiblingBeforeInit() throws Throwable {
|
||||||
CompositeService parent = new CompositeService("parent");
|
CompositeService parent = new CompositeService("parent");
|
||||||
BreakableService sibling = new BreakableService();
|
BreakableService sibling = new BreakableService();
|
||||||
|
@ -832,7 +832,7 @@ public class TestCompositeService {
|
||||||
1, parent.getServices().size());
|
1, parent.getServices().size());
|
||||||
}
|
}
|
||||||
|
|
||||||
@Test(timeout = 1000)
|
@Test(timeout = 10000)
|
||||||
public void testAddStoppedSiblingInInit() throws Throwable {
|
public void testAddStoppedSiblingInInit() throws Throwable {
|
||||||
CompositeService parent = new CompositeService("parent");
|
CompositeService parent = new CompositeService("parent");
|
||||||
BreakableService sibling = new BreakableService();
|
BreakableService sibling = new BreakableService();
|
||||||
|
@ -856,7 +856,7 @@ public class TestCompositeService {
|
||||||
2, parent.getServices().size());
|
2, parent.getServices().size());
|
||||||
}
|
}
|
||||||
|
|
||||||
@Test(timeout = 1000)
|
@Test(timeout = 10000)
|
||||||
public void testAddStoppedSiblingInStart() throws Throwable {
|
public void testAddStoppedSiblingInStart() throws Throwable {
|
||||||
CompositeService parent = new CompositeService("parent");
|
CompositeService parent = new CompositeService("parent");
|
||||||
BreakableService sibling = new BreakableService();
|
BreakableService sibling = new BreakableService();
|
||||||
|
@ -876,7 +876,7 @@ public class TestCompositeService {
|
||||||
2, parent.getServices().size());
|
2, parent.getServices().size());
|
||||||
}
|
}
|
||||||
|
|
||||||
@Test(timeout = 1000)
|
@Test(timeout = 10000)
|
||||||
public void testAddStoppedSiblingInStop() throws Throwable {
|
public void testAddStoppedSiblingInStop() throws Throwable {
|
||||||
CompositeService parent = new CompositeService("parent");
|
CompositeService parent = new CompositeService("parent");
|
||||||
BreakableService sibling = new BreakableService();
|
BreakableService sibling = new BreakableService();
|
||||||
|
|
|
@ -26,7 +26,7 @@ import org.apache.log4j.Logger;
|
||||||
import org.junit.Test;
|
import org.junit.Test;
|
||||||
|
|
||||||
public class TestClassUtil {
|
public class TestClassUtil {
|
||||||
@Test(timeout=1000)
|
@Test(timeout=10000)
|
||||||
public void testFindContainingJar() {
|
public void testFindContainingJar() {
|
||||||
String containingJar = ClassUtil.findContainingJar(Logger.class);
|
String containingJar = ClassUtil.findContainingJar(Logger.class);
|
||||||
Assert.assertNotNull("Containing jar not found for Logger",
|
Assert.assertNotNull("Containing jar not found for Logger",
|
||||||
|
|
|
@ -53,7 +53,7 @@ public class TestPortmap {
|
||||||
pm.shutdown();
|
pm.shutdown();
|
||||||
}
|
}
|
||||||
|
|
||||||
@Test(timeout = 1000)
|
@Test(timeout = 10000)
|
||||||
public void testIdle() throws InterruptedException, IOException {
|
public void testIdle() throws InterruptedException, IOException {
|
||||||
Socket s = new Socket();
|
Socket s = new Socket();
|
||||||
try {
|
try {
|
||||||
|
@ -75,7 +75,7 @@ public class TestPortmap {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@Test(timeout = 1000)
|
@Test(timeout = 10000)
|
||||||
public void testRegistration() throws IOException, InterruptedException {
|
public void testRegistration() throws IOException, InterruptedException {
|
||||||
XDR req = new XDR();
|
XDR req = new XDR();
|
||||||
RpcCall.getInstance(++xid, RpcProgramPortmap.PROGRAM,
|
RpcCall.getInstance(++xid, RpcProgramPortmap.PROGRAM,
|
||||||
|
|
Loading…
Reference in New Issue