Preserve staging I/O failure causes (T-615)
This commit is contained in:
@@ -401,6 +401,9 @@ func TestExtractorRemovesDestinationAfterCopyFailure(t *testing.T) {
|
||||
if !errors.Is(err, ErrArchiveCorrupt) {
|
||||
t.Fatalf("ExtractFile() error = %v, want %v", err, ErrArchiveCorrupt)
|
||||
}
|
||||
if errors.Is(err, ErrStagingOutput) {
|
||||
t.Fatalf("ExtractFile() error = %v, must not be a staging output failure", err)
|
||||
}
|
||||
if _, statErr := os.Stat(destination); !os.IsNotExist(statErr) {
|
||||
t.Fatalf("copy failure left staging, stat error = %v", statErr)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user