diff --git a/hadoop-hdfs-project/hadoop-hdfs/src/test/java/org/apache/hadoop/hdfs/TestFileCreation.java b/hadoop-hdfs-project/hadoop-hdfs/src/test/java/org/apache/hadoop/hdfs/TestFileCreation.java index 2c41c410ca..a736c55e8d 100644 --- a/hadoop-hdfs-project/hadoop-hdfs/src/test/java/org/apache/hadoop/hdfs/TestFileCreation.java +++ b/hadoop-hdfs-project/hadoop-hdfs/src/test/java/org/apache/hadoop/hdfs/TestFileCreation.java @@ -92,6 +92,7 @@ import org.apache.hadoop.util.Time; import org.junit.Assert; import org.junit.Test; +import org.mockito.Mockito; import org.slf4j.event.Level; /** @@ -285,6 +286,7 @@ public void testServerDefaultsWithMinimalCaching() throws Exception { }, 1, 6000); } finally { + Mockito.reset(spyNamesystem); cluster.shutdown(); } }