diff --git a/hadoop-hdfs-project/hadoop-hdfs/src/test/java/org/apache/hadoop/hdfs/TestEncryptionZones.java b/hadoop-hdfs-project/hadoop-hdfs/src/test/java/org/apache/hadoop/hdfs/TestEncryptionZones.java index 6c9fea6dbd..451fe9c883 100644 --- a/hadoop-hdfs-project/hadoop-hdfs/src/test/java/org/apache/hadoop/hdfs/TestEncryptionZones.java +++ b/hadoop-hdfs-project/hadoop-hdfs/src/test/java/org/apache/hadoop/hdfs/TestEncryptionZones.java @@ -1051,6 +1051,8 @@ private static void testCipherSuiteNegotiation(DistributedFileSystem fs, noCodecConf.set(confKey, ""); fs.dfs = new DFSClient(null, mcp, noCodecConf, null); mockCreate(mcp, suite, CryptoProtocolVersion.ENCRYPTION_ZONES); + Mockito.when(mcp.complete(anyString(), anyString(), any(), anyLong())) + .thenReturn(true); try { fs.create(new Path("/mock")); fail("Created with no configured codecs!");