Fix TestParallelShortCircuitReadNoChecksum.

Change-Id: I74b8b10acdb84c86c2e5066f1b9541c0480a11c0
This commit is contained in:
Siyao Meng 2021-08-19 22:35:18 -07:00
parent 2c242cea25
commit 3d9f8f227c

View File

@ -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 @@ static public void setupCluster() throws Exception {
@BeforeEach
public void before() {
Assumptions.assumeThat(DomainSocket.getLoadingFailureReason(), equalTo(null));
Assertions.assertNull(DomainSocket.getLoadingFailureReason());
}
@AfterAll