mirror of
https://github.com/chatmail/core.git
synced 2026-05-20 15:26:30 +03:00
dc_tools: remove dead code from the test
Since temporary directory is used, files from previous tests can't exist in blobdir.
This commit is contained in:
@@ -879,16 +879,6 @@ mod tests {
|
|||||||
}
|
}
|
||||||
|
|
||||||
assert!(!dc_delete_file(context, "$BLOBDIR/lkqwjelqkwlje").await);
|
assert!(!dc_delete_file(context, "$BLOBDIR/lkqwjelqkwlje").await);
|
||||||
if dc_file_exist!(context, "$BLOBDIR/foobar").await
|
|
||||||
|| dc_file_exist!(context, "$BLOBDIR/dada").await
|
|
||||||
|| dc_file_exist!(context, "$BLOBDIR/foobar.dadada").await
|
|
||||||
|| dc_file_exist!(context, "$BLOBDIR/foobar-folder").await
|
|
||||||
{
|
|
||||||
dc_delete_file(context, "$BLOBDIR/foobar").await;
|
|
||||||
dc_delete_file(context, "$BLOBDIR/dada").await;
|
|
||||||
dc_delete_file(context, "$BLOBDIR/foobar.dadada").await;
|
|
||||||
dc_delete_file(context, "$BLOBDIR/foobar-folder").await;
|
|
||||||
}
|
|
||||||
assert!(dc_write_file(context, "$BLOBDIR/foobar", b"content")
|
assert!(dc_write_file(context, "$BLOBDIR/foobar", b"content")
|
||||||
.await
|
.await
|
||||||
.is_ok());
|
.is_ok());
|
||||||
|
|||||||
Reference in New Issue
Block a user