File tree Expand file tree Collapse file tree 1 file changed +10
-2
lines changed
Expand file tree Collapse file tree 1 file changed +10
-2
lines changed Original file line number Diff line number Diff line change @@ -597,10 +597,18 @@ fn test_follow_name_multiple() {
597597 . arg ( FOOBAR_2_TXT )
598598 . run_no_wait ( ) ;
599599
600+ // On macOS, file system caching can cause a delay of 2-3 seconds before
601+ // output written to a redirected stdout temp file becomes visible to other
602+ // file handles reading that same file. Increase timeout to 3000ms on macOS.
603+ #[ cfg( target_os = "macos" ) ]
604+ let initial_delay = 3000 ;
605+ #[ cfg( not( target_os = "macos" ) ) ]
606+ let initial_delay = 500 ;
607+
600608 child
601- . make_assertion_with_delay ( 500 )
609+ . make_assertion_with_delay ( initial_delay )
602610 . is_alive ( )
603- . with_current_output ( )
611+ . with_all_output ( )
604612 . stdout_only_fixture ( "foobar_follow_multiple.expected" ) ;
605613
606614 let first_append = "trois\n " ;
You can’t perform that action at this time.
0 commit comments