@@ -331,8 +331,6 @@ mod tests {
331
331
use std:: time:: Duration ;
332
332
333
333
use crossbeam_channel:: unbounded;
334
- use serial_test:: serial;
335
- use tempfile:: TempDir ;
336
334
337
335
use crate :: sync:: tests:: { debug_cmd_print, repo_init} ;
338
336
use crate :: sync:: RepoPath ;
@@ -370,37 +368,4 @@ mod tests {
370
368
371
369
assert ! ( result. is_ok( ) ) ;
372
370
}
373
-
374
- #[ test]
375
- #[ serial]
376
- fn test_env_variables ( ) {
377
- let ( _td, repo) = repo_init ( ) . unwrap ( ) ;
378
- let git_dir = repo. path ( ) ;
379
-
380
- let ( tx_git, _rx_git) = unbounded ( ) ;
381
-
382
- let empty_dir = TempDir :: new ( ) . unwrap ( ) ;
383
- let empty_path: RepoPath =
384
- empty_dir. path ( ) . to_str ( ) . unwrap ( ) . into ( ) ;
385
-
386
- let arc_current = Arc :: new ( Mutex :: new ( AsyncLogResult {
387
- commits : Vec :: new ( ) ,
388
- duration : Duration :: default ( ) ,
389
- } ) ) ;
390
- let arc_background = Arc :: new ( AtomicBool :: new ( false ) ) ;
391
-
392
- std:: env:: set_var ( "GIT_DIR" , git_dir) ;
393
-
394
- let result = AsyncLog :: fetch_helper_without_filter (
395
- // We pass an empty path, thus testing whether `GIT_DIR`, set above, is taken into account.
396
- & empty_path,
397
- & arc_current,
398
- & arc_background,
399
- & tx_git,
400
- ) ;
401
-
402
- std:: env:: remove_var ( "GIT_DIR" ) ;
403
-
404
- assert ! ( result. is_ok( ) ) ;
405
- }
406
371
}
0 commit comments