HDFS-12472. Add JUNIT timeout to TestBlockStatsMXBean. Contributed by Bharat Viswanadham.
This commit is contained in:
parent
c34c823d26
commit
f42705b957
|
@ -41,8 +41,10 @@ import org.apache.hadoop.hdfs.MiniDFSCluster;
|
|||
import org.apache.hadoop.hdfs.server.datanode.DataNodeTestUtils;
|
||||
import org.junit.After;
|
||||
import org.junit.Before;
|
||||
import org.junit.Rule;
|
||||
import org.junit.Test;
|
||||
import org.mortbay.util.ajax.JSON;
|
||||
import org.junit.rules.Timeout;
|
||||
|
||||
/**
|
||||
* Class for testing {@link BlockStatsMXBean} implementation
|
||||
|
@ -51,6 +53,9 @@ public class TestBlockStatsMXBean {
|
|||
|
||||
private MiniDFSCluster cluster;
|
||||
|
||||
@Rule
|
||||
public Timeout globalTimeout = new Timeout(300000);
|
||||
|
||||
@Before
|
||||
public void setup() throws IOException {
|
||||
HdfsConfiguration conf = new HdfsConfiguration();
|
||||
|
|
Loading…
Reference in New Issue