From cfab28a0eee5de52c87020c5448d7bf40cb52771 Mon Sep 17 00:00:00 2001 From: Siyao Meng <50227127+smengcl@users.noreply.github.com> Date: Thu, 19 Aug 2021 22:42:42 -0700 Subject: [PATCH] Fix TestParallelShortCircuitRead. Change-Id: I72a2b5e59c3bb906253b2ea64f91f7ae6bdef1d7 --- .../apache/hadoop/hdfs/TestParallelShortCircuitRead.java | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/hadoop-hdfs-project/hadoop-hdfs/src/test/java/org/apache/hadoop/hdfs/TestParallelShortCircuitRead.java b/hadoop-hdfs-project/hadoop-hdfs/src/test/java/org/apache/hadoop/hdfs/TestParallelShortCircuitRead.java index 1d532811314..2e8d649a32d 100644 --- a/hadoop-hdfs-project/hadoop-hdfs/src/test/java/org/apache/hadoop/hdfs/TestParallelShortCircuitRead.java +++ b/hadoop-hdfs-project/hadoop-hdfs/src/test/java/org/apache/hadoop/hdfs/TestParallelShortCircuitRead.java @@ -17,15 +17,13 @@ */ package org.apache.hadoop.hdfs; -import static org.hamcrest.CoreMatchers.equalTo; - import java.io.File; import org.apache.hadoop.hdfs.client.HdfsClientConfigKeys; import org.apache.hadoop.net.unix.DomainSocket; import org.apache.hadoop.net.unix.TemporarySocketDirectory; import org.junit.jupiter.api.AfterAll; -import org.junit.jupiter.api.Assumptions; +import org.junit.jupiter.api.Assertions; import org.junit.jupiter.api.BeforeAll; import org.junit.jupiter.api.BeforeEach; @@ -49,7 +47,7 @@ public class TestParallelShortCircuitRead extends TestParallelReadUtil { @BeforeEach public void before() { - Assumptions.assumeThat(DomainSocket.getLoadingFailureReason(), equalTo(null)); + Assertions.assertNull(DomainSocket.getLoadingFailureReason()); } @AfterAll