فهرست منبع

Fix TestShortCircuitLocalRead.

Change-Id: Ida09040d6fd050d4706ba9b68c77594a877b1077
Siyao Meng 3 سال پیش
والد
کامیت
3ddb921f7a

+ 1 - 3
hadoop-hdfs-project/hadoop-hdfs/src/test/java/org/apache/hadoop/hdfs/shortcircuit/TestShortCircuitLocalRead.java

@@ -17,7 +17,6 @@
  */
 package org.apache.hadoop.hdfs.shortcircuit;
 
-import static org.hamcrest.CoreMatchers.equalTo;
 import static org.junit.jupiter.api.Assertions.assertFalse;
 import static org.junit.jupiter.api.Assertions.assertTrue;
 
@@ -64,7 +63,6 @@ import org.apache.hadoop.util.Time;
 import org.junit.Test;
 import org.junit.jupiter.api.AfterAll;
 import org.junit.jupiter.api.Assertions;
-import org.junit.jupiter.api.Assumptions;
 import org.junit.jupiter.api.BeforeAll;
 import org.junit.jupiter.api.BeforeEach;
 
@@ -91,7 +89,7 @@ public class TestShortCircuitLocalRead {
 
   @BeforeEach
   public void before() {
-    Assumptions.assumeThat(DomainSocket.getLoadingFailureReason(), equalTo(null));
+    Assertions.assertNull(DomainSocket.getLoadingFailureReason());
   }
 
   static final long seed = 0xDEADBEEFL;