File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed
postgresql_extensions/src Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -249,7 +249,7 @@ mod tests {
249249 #[ cfg( target_os = "linux" ) ]
250250 #[ tokio:: test]
251251 async fn test_installed_configuration_io ( ) -> Result < ( ) > {
252- let temp_file = tempfile:: NamedTempFile :: new ( ) ?;
252+ let temp_file = tempfile:: NamedTempFile :: new ( ) . map_err ( |error| IoError ( error . to_string ( ) ) ) ?;
253253 let file = temp_file. as_ref ( ) ;
254254 let extensions = vec ! [ InstalledExtension :: new(
255255 "namespace" ,
@@ -261,7 +261,9 @@ mod tests {
261261 expected_configuration. write ( file) . await ?;
262262 let configuration = InstalledConfiguration :: read ( file) . await ?;
263263 assert_eq ! ( expected_configuration, configuration) ;
264- tokio:: fs:: remove_file ( file) . await ?;
264+ tokio:: fs:: remove_file ( file)
265+ . await
266+ . map_err ( |error| IoError ( error. to_string ( ) ) ) ?;
265267 Ok ( ( ) )
266268 }
267269
You can’t perform that action at this time.
0 commit comments