HADOOP-16885. Fix hadoop-commons TestCopy failure

Followup to HADOOP-16885: Encryption zone file copy failure leaks a temp file

Moving the delete() call broke a mocking test, which slipped through the review process.

Contributed by Steve Loughran.

Change-Id: Ia13faf0f4fffb1c99ddd616d823e4f4d0b7b0cbb
This commit is contained in:
Steve Loughran 2020-03-03 17:25:22 +00:00 committed by GitHub
parent c0d084247c
commit d0a7c790c6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -121,7 +121,7 @@ public class TestCopy {
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();
}