diff --git a/hadoop-common-project/hadoop-common/src/test/java/org/apache/hadoop/fs/shell/TestCopy.java b/hadoop-common-project/hadoop-common/src/test/java/org/apache/hadoop/fs/shell/TestCopy.java index f73e83d858..9172f85eb9 100644 --- a/hadoop-common-project/hadoop-common/src/test/java/org/apache/hadoop/fs/shell/TestCopy.java +++ b/hadoop-common-project/hadoop-common/src/test/java/org/apache/hadoop/fs/shell/TestCopy.java @@ -121,7 +121,7 @@ public void testInterruptedCreate() throws Exception { tryCopyStream(in, false); verify(mockFs, never()).rename(any(Path.class), any(Path.class)); - verify(mockFs, never()).delete(eq(tmpPath), anyBoolean()); + verify(mockFs).delete(eq(tmpPath), anyBoolean()); verify(mockFs, never()).delete(eq(path), anyBoolean()); verify(mockFs, never()).close(); }