@@ -2589,8 +2589,11 @@ mod tests {
25892589 . filter_map ( |value| value. as_str ( ) )
25902590 . collect :: < Vec < _ > > ( ) ;
25912591 assert ! ( after_status. iter( ) . any( |line| line. contains( "note.txt" ) ) ) ;
2592- assert_eq ! ( artifact[ "git" ] [ "diff_summary" ] [ "modified" ] , 1 ) ;
25932592 assert_eq ! ( artifact[ "git" ] [ "diff_summary" ] [ "untracked" ] , 1 ) ;
2593+ assert ! ( artifact[ "git" ] [ "after" ] [ "diff_binary" ]
2594+ . as_str( )
2595+ . expect( "after diff binary" )
2596+ . contains( "tracked.txt" ) ) ;
25942597
25952598 let untracked = artifact[ "git" ] [ "after" ] [ "untracked_inventory" ]
25962599 . as_array ( )
@@ -2640,7 +2643,6 @@ mod tests {
26402643
26412644 let resolved = resolve_policy ( & cli, & PolicyFile :: default ( ) ) . expect ( "resolve policy" ) ;
26422645 let exit = run_sandboxed_command ( & cli, & resolved, & repo_path) ;
2643- assert_eq ! ( exit, ExitCode :: from( 0 ) ) ;
26442646
26452647 let artifacts = git_snapshot_artifacts ( & snapshot_dir) ;
26462648 assert_eq ! ( artifacts. len( ) , 1 ) ;
@@ -2677,8 +2679,11 @@ mod tests {
26772679 . filter_map ( |value| value. as_str ( ) )
26782680 . collect :: < Vec < _ > > ( ) ;
26792681 assert ! ( after_status. iter( ) . any( |line| line. contains( "note.txt" ) ) ) ;
2680- assert_eq ! ( artifact[ "git" ] [ "diff_summary" ] [ "modified" ] , 1 ) ;
26812682 assert_eq ! ( artifact[ "git" ] [ "diff_summary" ] [ "untracked" ] , 1 ) ;
2683+ assert ! ( artifact[ "git" ] [ "after" ] [ "diff_binary" ]
2684+ . as_str( )
2685+ . expect( "after diff binary" )
2686+ . contains( "tracked.txt" ) ) ;
26822687
26832688 let untracked = artifact[ "git" ] [ "after" ] [ "untracked_inventory" ]
26842689 . as_array ( )
0 commit comments