HDFS-11745. Increase HDFS test timeouts from 1 second to 10 seconds. Contributed by Eric Badger
(cherry picked from commit fab73748a1
)
This commit is contained in:
parent
030d521a69
commit
ef120bed7b
|
@ -749,7 +749,7 @@ public class TestRpcProgramNfs3 {
|
|||
assertEquals("Incorrect COMMIT3Response:", null, response2);
|
||||
}
|
||||
|
||||
@Test(timeout=1000)
|
||||
@Test(timeout=10000)
|
||||
public void testIdempotent() {
|
||||
Object[][] procedures = {
|
||||
{ Nfs3Constant.NFSPROC3.NULL, 1 },
|
||||
|
|
|
@ -34,7 +34,7 @@ public class TestSymlinkHdfsFileContext extends TestSymlinkHdfs {
|
|||
wrapper = new FileContextTestWrapper(fc, "/tmp/TestSymlinkHdfsFileContext");
|
||||
}
|
||||
|
||||
@Test(timeout=1000)
|
||||
@Test(timeout=10000)
|
||||
/** Test access a symlink using AbstractFileSystem */
|
||||
public void testAccessLinkFromAbstractFileSystem() throws IOException {
|
||||
Path file = new Path(testBaseDir1(), "file");
|
||||
|
|
|
@ -35,13 +35,13 @@ public class TestSymlinkHdfsFileSystem extends TestSymlinkHdfs {
|
|||
|
||||
@Override
|
||||
@Ignore("FileSystem adds missing authority in absolute URIs")
|
||||
@Test(timeout=1000)
|
||||
@Test(timeout=10000)
|
||||
public void testCreateWithPartQualPathFails() throws IOException {}
|
||||
|
||||
@Ignore("FileSystem#create creates parent directories," +
|
||||
" so dangling links to directories are created")
|
||||
@Override
|
||||
@Test(timeout=1000)
|
||||
@Test(timeout=10000)
|
||||
public void testCreateFileViaDanglingLinkParent() throws IOException {}
|
||||
|
||||
// Additional tests for DFS-only methods
|
||||
|
|
|
@ -861,7 +861,7 @@ public class TestDFSUtil {
|
|||
DFSUtil.getSpnegoKeytabKey(conf, defaultKey));
|
||||
}
|
||||
|
||||
@Test(timeout=1000)
|
||||
@Test(timeout=10000)
|
||||
public void testDurationToString() throws Exception {
|
||||
assertEquals("000:00:00:00.000", DFSUtil.durationToString(0));
|
||||
assertEquals("001:01:01:01.000",
|
||||
|
|
|
@ -163,7 +163,7 @@ public class TestNameNodeMetrics {
|
|||
* Test that capacity metrics are exported and pass
|
||||
* basic sanity tests.
|
||||
*/
|
||||
@Test (timeout = 1800)
|
||||
@Test (timeout = 10000)
|
||||
public void testCapacityMetrics() throws Exception {
|
||||
MetricsRecordBuilder rb = getMetrics(NS_METRICS);
|
||||
long capacityTotal = MetricsAsserts.getLongGauge("CapacityTotal", rb);
|
||||
|
|
|
@ -130,7 +130,7 @@ public class TestWebHdfsTokens {
|
|||
verify(fs, never()).setDelegationToken((Token<?>)any(Token.class));
|
||||
}
|
||||
|
||||
@Test(timeout = 1000)
|
||||
@Test(timeout = 10000)
|
||||
public void testGetOpRequireAuth() {
|
||||
for (HttpOpParam.Op op : GetOpParam.Op.values()) {
|
||||
boolean expect = (op == GetOpParam.Op.GETDELEGATIONTOKEN);
|
||||
|
@ -138,7 +138,7 @@ public class TestWebHdfsTokens {
|
|||
}
|
||||
}
|
||||
|
||||
@Test(timeout = 1000)
|
||||
@Test(timeout = 10000)
|
||||
public void testPutOpRequireAuth() {
|
||||
for (HttpOpParam.Op op : PutOpParam.Op.values()) {
|
||||
boolean expect = (op == PutOpParam.Op.RENEWDELEGATIONTOKEN || op == PutOpParam.Op.CANCELDELEGATIONTOKEN);
|
||||
|
@ -146,14 +146,14 @@ public class TestWebHdfsTokens {
|
|||
}
|
||||
}
|
||||
|
||||
@Test(timeout = 1000)
|
||||
@Test(timeout = 10000)
|
||||
public void testPostOpRequireAuth() {
|
||||
for (HttpOpParam.Op op : PostOpParam.Op.values()) {
|
||||
assertFalse(op.getRequireAuth());
|
||||
}
|
||||
}
|
||||
|
||||
@Test(timeout = 1000)
|
||||
@Test(timeout = 10000)
|
||||
public void testDeleteOpRequireAuth() {
|
||||
for (HttpOpParam.Op op : DeleteOpParam.Op.values()) {
|
||||
assertFalse(op.getRequireAuth());
|
||||
|
|
Loading…
Reference in New Issue