File tree Expand file tree Collapse file tree 3 files changed +3
-6
lines changed
Expand file tree Collapse file tree 3 files changed +3
-6
lines changed Original file line number Diff line number Diff line change @@ -2,7 +2,7 @@ use postgresql_archive::configuration::theseus;
22use postgresql_archive:: extract;
33use postgresql_archive:: { get_archive, get_version} ;
44use semver:: VersionReq ;
5- use std:: fs:: { create_dir_all , remove_dir_all} ;
5+ use std:: fs:: remove_dir_all;
66use test_log:: test;
77
88#[ test( tokio:: test) ]
@@ -32,7 +32,6 @@ async fn test_get_archive_and_extract() -> anyhow::Result<()> {
3232 assert ! ( version_req. matches( & archive_version) ) ;
3333
3434 let out_dir = tempfile:: tempdir ( ) ?. path ( ) . to_path_buf ( ) ;
35- create_dir_all ( & out_dir) ?;
3635 extract ( url, & archive, & out_dir) . await ?;
3736 remove_dir_all ( & out_dir) ?;
3837 Ok ( ( ) )
Original file line number Diff line number Diff line change @@ -5,7 +5,7 @@ use postgresql_archive::configuration::theseus;
55#[ cfg( feature = "blocking" ) ]
66use postgresql_archive:: VersionReq ;
77#[ cfg( feature = "blocking" ) ]
8- use std:: fs:: { create_dir_all , remove_dir_all} ;
8+ use std:: fs:: remove_dir_all;
99#[ cfg( feature = "blocking" ) ]
1010use test_log:: test;
1111
@@ -30,7 +30,6 @@ fn test_get_archive_and_extract() -> anyhow::Result<()> {
3030 assert ! ( version_req. matches( & archive_version) ) ;
3131
3232 let out_dir = tempfile:: tempdir ( ) ?. path ( ) . to_path_buf ( ) ;
33- create_dir_all ( & out_dir) ?;
3433 extract ( url, & archive, & out_dir) ?;
3534 remove_dir_all ( & out_dir) ?;
3635 Ok ( ( ) )
Original file line number Diff line number Diff line change @@ -2,7 +2,7 @@ use postgresql_archive::configuration::zonky;
22use postgresql_archive:: extract;
33use postgresql_archive:: { get_archive, get_version} ;
44use semver:: VersionReq ;
5- use std:: fs:: { create_dir_all , remove_dir_all} ;
5+ use std:: fs:: remove_dir_all;
66use test_log:: test;
77
88#[ test( tokio:: test) ]
@@ -32,7 +32,6 @@ async fn test_get_archive_and_extract() -> anyhow::Result<()> {
3232 assert ! ( version_req. matches( & archive_version) ) ;
3333
3434 let out_dir = tempfile:: tempdir ( ) ?. path ( ) . to_path_buf ( ) ;
35- create_dir_all ( & out_dir) ?;
3635 extract ( url, & archive, & out_dir) . await ?;
3736 remove_dir_all ( & out_dir) ?;
3837 Ok ( ( ) )
You can’t perform that action at this time.
0 commit comments